mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
debugger: remove obsolete setTimeout
Remove obsolete `setTimeout()` introduced in3148f1400. The fix for the problem is inb266074347. (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: https://github.com/nodejs/node/pull/7154 Reviewed-By: Fedor Indutny <fedor@indutny.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
1 parent
79b45886c1
commit
3be5cdcd43
1 file changed
+1
-7
+1
-7
@@ -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(); });
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user