Browse Source

Added _ that is te result of the previous command.

v0.7.4-release
RayMorgan 15 years ago
parent
commit
7674bd5004
  1. 1
      lib/repl.js

1
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);
}

Loading…
Cancel
Save