Skip to content

Commit 3be5cdc

Browse files
TrottMyles Borins
authored and
Myles Borins
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 79b4588 commit 3be5cdc

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
@@ -825,13 +825,7 @@ function Interface(stdin, stdout, args) {
825825
// Run script automatically
826826
this.pause();
827827

828-
// XXX Need to figure out why we need this delay
829-
setTimeout(function() {
830-
831-
self.run(function() {
832-
self.resume();
833-
});
834-
}, 10);
828+
setImmediate(() => { this.run(); });
835829
}
836830

837831

0 commit comments

Comments
 (0)