mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-19 22:37:58 +01:00
Cause some crashes, no doubt.
--HG-- extra : rebase_source : db7b09141e561645cd40b970c2a5e4921c2f39c0
This commit is contained in:
@@ -53,7 +53,7 @@ var JavaScript = Module("javascript", {
|
||||
|
||||
lazyInit: true,
|
||||
|
||||
newContext: function () this.modules.newContext(this.modules.userContext, true),
|
||||
newContext: function () this.modules.newContext(this.modules.userContext, true, "Dactyl JS Temp Context"),
|
||||
|
||||
completers: Class.Memoize(function () Object.create(JavaScript.completers)),
|
||||
|
||||
@@ -765,10 +765,10 @@ var JavaScript = Module("javascript", {
|
||||
let self = this;
|
||||
let sandbox = true || isinstance(context, ["Sandbox"]);
|
||||
|
||||
this.context = modules.newContext(context, !sandbox);
|
||||
this.context = modules.newContext(context, !sandbox, "Dactyl REPL Context");
|
||||
this.js = modules.JavaScript();
|
||||
this.js.replContext = this.context;
|
||||
this.js.newContext = function newContext() modules.newContext(self.context, !sandbox);
|
||||
this.js.newContext = function newContext() modules.newContext(self.context, !sandbox, "Dactyl REPL Temp Context");
|
||||
|
||||
this.js.globals = [
|
||||
[this.context, /*L*/"REPL Variables"],
|
||||
|
||||
Reference in New Issue
Block a user