Closes GH-232 Make the repl's global the right thing
This commit is contained in:
parent
f3d364122d
commit
a48f73d0d3
@ -45,6 +45,8 @@ function resetContext() {
|
||||
for (var i in global) context[i] = global[i];
|
||||
context.module = module;
|
||||
context.require = require;
|
||||
context.global = context;
|
||||
context.global.global = context;
|
||||
for (var i in require.cache) delete require.cache[i];
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user