From: isaacs Date: Wed, 16 Feb 2011 23:40:53 +0000 (-0800) Subject: Closes GH-232 Make the repl's global the right thing X-Git-Tag: v0.4.2~17 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a48f73d0d3440fe59d580d45726467d034d0b1ae;p=platform%2Fupstream%2Fnodejs.git Closes GH-232 Make the repl's global the right thing --- diff --git a/lib/repl.js b/lib/repl.js index 4c769e7..7e42ac9 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]; }