|
@ -852,6 +852,13 @@ Interface.prototype.requireConnection = function() { |
|
|
// Used for debugger's commands evaluation and execution
|
|
|
// Used for debugger's commands evaluation and execution
|
|
|
Interface.prototype.controlEval = function(code, context, filename, callback) { |
|
|
Interface.prototype.controlEval = function(code, context, filename, callback) { |
|
|
try { |
|
|
try { |
|
|
|
|
|
// Repeat last command if empty line are going to be evaluated
|
|
|
|
|
|
if (this.repl.rli.history.length > 0) { |
|
|
|
|
|
if (code === '(undefined\n)') { |
|
|
|
|
|
code = '(' + this.repl.rli.history[0] + '\n)'; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
var result = vm.runInContext(code, context, filename); |
|
|
var result = vm.runInContext(code, context, filename); |
|
|
|
|
|
|
|
|
// Repl should not ask for next command
|
|
|
// Repl should not ask for next command
|
|
|