Skip to content

Commit 7674bd5

Browse files
author
RayMorgan
committed
Added _ that is te result of the previous command.
1 parent 6915188 commit 7674bd5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/repl.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ function readline (cmd) {
4141
// Scope the readline with exports.scope to provide "local" vars
4242
with (exports.scope) {
4343
var ret = eval(buffered_cmd);
44+
exports.scope['_'] = ret;
4445
printValue(ret);
4546
}
4647

0 commit comments

Comments
 (0)