diff --git a/lib/_debugger.js b/lib/_debugger.js index 7da2f70bcaf1e9..738eb9871bb2b6 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(); }); }