Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
test: refactor inspector-helper.js
There are two instances of `setTimeout()` called without a duration in
`inspector-helper.js`. Change to `setImmediate()` for clarity that it
isn't a mistake.
  • Loading branch information
Trott committed Nov 7, 2016
commit 0686086e2c2c53e2507a88112d565fe9863c933a
4 changes: 2 additions & 2 deletions test/inspector/inspector-helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ TestSession.prototype.expectStderrOutput = function(regexp) {

TestSession.prototype.runNext_ = function() {
if (this.task_) {
setTimeout(() => {
setImmediate(() => {
this.task_(() => {
this.task_ = this.task_.next_;
this.runNext_();
Expand Down Expand Up @@ -338,7 +338,7 @@ Harness.prototype.addStderrFilter = function(regexp, callback) {
};

Harness.prototype.run_ = function() {
setTimeout(() => {
setImmediate(() => {
this.task_(() => {
this.task_ = this.task_.next_;
if (this.task_)
Expand Down