diff --git a/lib/_debugger.js b/lib/_debugger.js index c39a0ba58ec..b221ce0bb99 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)'; } }