diff --git a/lib/_debugger.js b/lib/_debugger.js index 7da2f70bca..738eb9871b 100644 --- a/lib/_debugger.js +++ b/lib/_debugger.js @@ -829,13 +829,7 @@ function Interface(stdin, stdout, args) { // Run script automatically this.pause(); - // XXX Need to figure out why we need this delay - setTimeout(function() { - - self.run(function() { - self.resume(); - }); - }, 10); + setImmediate(() => { this.run(); }); }