Browse Source

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

v0.7.4-release
isaacs 14 years ago
committed by Ryan Dahl
parent
commit
a48f73d0d3
  1. 2
      lib/repl.js

2
lib/repl.js

@ -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…
Cancel
Save