mirror of https://github.com/nodejs/node.git
[debugger] resume stdin at right time when running code remotely
parent
d36d5c34df
commit
46382a728a
|
@ -750,18 +750,19 @@ Interface.prototype.debugEval = function(code, context, filename, callback) {
|
|||
|
||||
self.pause();
|
||||
client.reqEval(code, function(res) {
|
||||
self.resume();
|
||||
if (!res.success) {
|
||||
if (res.message) {
|
||||
callback(res.message);
|
||||
} else {
|
||||
callback(null);
|
||||
}
|
||||
self.resume();
|
||||
return;
|
||||
}
|
||||
|
||||
client.mirrorObject(res.body, function(mirror) {
|
||||
callback(null, mirror);
|
||||
self.resume();
|
||||
});
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue