Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 3be5cdc

Browse filesBrowse files
TrottMyles Borins
authored andcommitted
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 <fedor@indutny.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent 79b4588 commit 3be5cdc
Copy full SHA for 3be5cdc

File tree

Expand file treeCollapse file tree

1 file changed

+1
-7
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-7
lines changed
Open diff view settings
Collapse file

‎lib/_debugger.js‎

Copy file name to clipboardExpand all lines: lib/_debugger.js
+1-7Lines changed: 1 addition & 7 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.