Skip to content

Commit 671cffa

Browse files
committed
debugger: remove obsolete setTimeout
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 <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
1 parent e0b8dd5 commit 671cffa

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

lib/_debugger.js

+1-7
Original file line numberDiff line numberDiff line change
@@ -829,13 +829,7 @@ function Interface(stdin, stdout, args) {
829829
// Run script automatically
830830
this.pause();
831831

832-
// XXX Need to figure out why we need this delay
833-
setTimeout(function() {
834-
835-
self.run(function() {
836-
self.resume();
837-
});
838-
}, 10);
832+
setImmediate(() => { this.run(); });
839833
}
840834

841835

0 commit comments

Comments
 (0)