()
| 7416 | var queueIndex = -1; |
| 7417 | |
| 7418 | function cleanUpNextTick() { |
| 7419 | if (!draining || !currentQueue) { |
| 7420 | return; |
| 7421 | } |
| 7422 | draining = false; |
| 7423 | if (currentQueue.length) { |
| 7424 | queue = currentQueue.concat(queue); |
| 7425 | } else { |
| 7426 | queueIndex = -1; |
| 7427 | } |
| 7428 | if (queue.length) { |
| 7429 | drainQueue(); |
| 7430 | } |
| 7431 | } |
| 7432 | |
| 7433 | function drainQueue() { |
| 7434 | if (draining) { |
nothing calls this directly
no test coverage detected