diff --git a/lib/repl.js b/lib/repl.js index a8d8f2686c..b35afac769 100644 --- a/lib/repl.js +++ b/lib/repl.js @@ -41,6 +41,7 @@ function readline (cmd) { // Scope the readline with exports.scope to provide "local" vars with (exports.scope) { var ret = eval(buffered_cmd); + exports.scope['_'] = ret; printValue(ret); }