|
|
@ -687,10 +687,12 @@ Interface.prototype.pause = function() { |
|
|
|
process.stdin.pause(); |
|
|
|
}; |
|
|
|
|
|
|
|
Interface.prototype.resume = function() { |
|
|
|
Interface.prototype.resume = function(silent) { |
|
|
|
if (this.paused === 0 || --this.paused !== 0) return false; |
|
|
|
this.repl.rli.resume(); |
|
|
|
if (silent !== true) { |
|
|
|
this.repl.displayPrompt(); |
|
|
|
} |
|
|
|
process.stdin.resume(); |
|
|
|
|
|
|
|
if (this.waiting) { |
|
|
@ -752,13 +754,13 @@ Interface.prototype.debugEval = function(code, context, filename, callback) { |
|
|
|
} else { |
|
|
|
callback(null); |
|
|
|
} |
|
|
|
self.resume(); |
|
|
|
self.resume(true); |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
client.mirrorObject(res.body, function(mirror) { |
|
|
|
callback(null, mirror); |
|
|
|
self.resume(); |
|
|
|
self.resume(true); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}; |
|
|
|