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 068718c

Browse filesBrowse files
Trottevanlucas
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 d31f728 commit 068718c
Copy full SHA for 068718c

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
@@ -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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.