This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

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

  • Loading branch information...
isaacs authored and ry committed Feb 16, 2011
1 parent f3d3641 commit a48f73d0d3440fe59d580d45726467d034d0b1ae
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/repl.js
View
@@ -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];
}

0 comments on commit a48f73d

Please sign in to comment.