Skip to content

Commit

Permalink
debugger: remove obsolete setTimeout
Browse files Browse the repository at this point in the history
Remove obsolete `setTimeout()` introduced in 3148f14. The fix for the
problem is in b266074. (For the record, I mostly don't know what I'm
talking about here but am summarizing from an IRC #node-dev conversation
with @indutny on 04-Jun-2016.)

PR-URL: #7154
Reviewed-By: Fedor Indutny <fedor@indutny.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
  • Loading branch information
Trott authored and evanlucas committed Jun 15, 2016
1 parent d31f728 commit 068718c
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions lib/_debugger.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(); });
}


Expand Down

0 comments on commit 068718c

Please sign in to comment.