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

liberator.eval (:js/:echo/...) now uses a separate context. JS completion uses disposable contexts that last one session.

This commit is contained in:
Kris Maglione
2008-11-29 16:22:35 +00:00
parent 3f6f53580f
commit f068dc57ca
5 changed files with 80 additions and 39 deletions

View File

@@ -822,11 +822,9 @@ lookup:
// handle pure javascript files specially
if (/\.js$/.test(filename))
{
let loader = Components.classes["@mozilla.org/moz/jssubscript-loader;1"]
.getService(Components.interfaces.mozIJSSubScriptLoader);
try
{
loader.loadSubScript(uri.spec, new Script(file.path));
liberator.loadScript(uri.spec, new Script(file.path));
}
catch (e)
{