From a48f73d0d3440fe59d580d45726467d034d0b1ae Mon Sep 17 00:00:00 2001 From: isaacs Date: Wed, 16 Feb 2011 15:40:53 -0800 Subject: [PATCH] Closes GH-232 Make the repl's global the right thing --- lib/repl.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/repl.js b/lib/repl.js index 4c769e73f3..7e42ac9ff2 100644 --- a/lib/repl.js +++ b/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]; }