diff --git a/q.js b/q.js index 5bbfadb2..228d7a13 100644 --- a/q.js +++ b/q.js @@ -93,7 +93,8 @@ var nextTick =(function () { function flush() { /* jshint loopfunc: true */ - while ((head = head.next)) { + while (head.next) { + head = head.next; var task = head.task; head.task = void 0; var domain = head.domain;