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 Myles Borins committed Jul 14, 2016
1 parent 79b4588 commit 3be5cdc
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 @@ -825,13 +825,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 3be5cdc

Please sign in to comment.