Skip to content

Commit

Permalink
Added _ that is te result of the previous command.
Browse files Browse the repository at this point in the history
  • Loading branch information
RayMorgan committed Sep 25, 2009
1 parent 6915188 commit 7674bd5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/repl.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 7674bd5

Please sign in to comment.