From 7674bd500418cba020c69d0f5702ad45ec61d2a9 Mon Sep 17 00:00:00 2001 From: RayMorgan Date: Thu, 24 Sep 2009 19:53:11 -0700 Subject: [PATCH] Added _ that is te result of the previous command. --- lib/repl.js | 1 + 1 file changed, 1 insertion(+) 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); }