Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Closes GH-232 Make the repl's global the right thing
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs authored and ry committed Feb 28, 2011
1 parent f3d3641 commit a48f73d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/repl.js
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}

Expand Down

0 comments on commit a48f73d

Please sign in to comment.