Browse Source

Removed `rl.on('close', ...)` callback

v0.9.1-release
Colton Baker 13 years ago
committed by isaacs
parent
commit
ac9fa2b846
  1. 7
      lib/_debugger.js

7
lib/_debugger.js

@ -754,12 +754,7 @@ function Interface(stdin, stdout, args) {
this.repl = new repl.REPLServer('debug> ', streams,
this.controlEval.bind(this), false, true);
// Kill child process when repl closed or main process is dead
this.repl.rli.addListener('close', function() {
self.killed = true;
self.killChild();
});
// Kill child process when main process dies
process.on('exit', function() {
self.killChild();
});

Loading…
Cancel
Save