1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-15 15:25:50 +01:00

Fix some stupid bugs in newer JägerMonkey. Closes issue #86.

This commit is contained in:
Kris Maglione
2010-10-14 13:58:18 -04:00
parent fbb70c7093
commit e925a7db01
4 changed files with 9 additions and 7 deletions

View File

@@ -298,7 +298,7 @@ const Dactyl = Module("dactyl", {
if (!context)
context = userContext;
context[EVAL_STRING] = str;
return Cu.evalInSandbox("with (window) { eval(" + EVAL_STRING + ") }", context, "1.8", fileName, lineNumber);
return Cu.evalInSandbox("eval('with (window) {'+" + EVAL_STRING + "+'}')", context, "1.8", fileName, lineNumber);
},
/**

View File

@@ -160,7 +160,7 @@ const IO = Module("io", {
getRuntimeDirectories: function (name) {
let dirs = options["runtimepath"];
dirs = dirs.map(function (dir) File.joinPaths(dir, name, this.cwd))
dirs = dirs.map(function (dir) File.joinPaths(dir, name, this.cwd), this)
.filter(function (dir) dir.exists() && dir.isDirectory() && dir.isReadable());
return dirs;
},