Closes GH-232 Make the repl's global the right thing

This commit is contained in:
isaacs 2011-02-16 15:40:53 -08:00 committed by Ryan Dahl
parent f3d364122d
commit a48f73d0d3

View File

@ -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];
}