Skip to content

Commit

Permalink
[js] Make code ugly so the compiler doesn't (incorrectly) detect an u…
Browse files Browse the repository at this point in the history
…nreachable

branch.
  • Loading branch information
jleyba committed Nov 2, 2015
1 parent 72f2c0f commit c3f9e7e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions javascript/webdriver/promise.js
Original file line number Diff line number Diff line change
Expand Up @@ -2873,10 +2873,12 @@ var TaskQueue = goog.defineClass(EventEmitter, {
vlog(2, () => this + ' skipping blocked task ' + task, this);
task.queue = null;
task = null;
continue;
// TODO: recurse when tail-call optimization is available in node.
} else {
break;
}
return task;
}
return task;
}
});

Expand Down

0 comments on commit c3f9e7e

Please sign in to comment.