diff options
-rw-r--r-- | lib/_debugger.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/_debugger.js b/lib/_debugger.js index c39a0ba58..b221ce0bb 100644 --- a/lib/_debugger.js +++ b/lib/_debugger.js @@ -952,7 +952,7 @@ Interface.prototype.controlEval = function(code, context, filename, callback) { try { // Repeat last command if empty line are going to be evaluated if (this.repl.rli.history && this.repl.rli.history.length > 0) { - if (code === '(undefined\n)') { + if (code === '(\n)') { code = '(' + this.repl.rli.history[0] + '\n)'; } } |