1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 10:08:00 +01:00

Better JS completion cacheing

This commit is contained in:
Kris Maglione
2008-10-15 18:50:42 +00:00
parent 6ae49d3dbc
commit eafa04da64
2 changed files with 55 additions and 30 deletions

View File

@@ -640,14 +640,13 @@ const liberator = (function () //{{{
liberator.dump((msg || "") + (new Error()).stack.replace(/.*\n/, ""));
},
// with (liberator) means, liberator is the default namespace "inside" eval
eval: function (str)
{
const fileName = "chrome://liberator/content/liberator.js";
const line = new Error().lineNumber + 3;
try
{
return eval("with (liberator) {" + str + "}");
return window.eval(str);
}
catch (e)
{