()
| 23345 | var queueIndex = -1; |
| 23346 | |
| 23347 | function cleanUpNextTick() { |
| 23348 | if (!draining || !currentQueue) { |
| 23349 | return; |
| 23350 | } |
| 23351 | draining = false; |
| 23352 | if (currentQueue.length) { |
| 23353 | queue = currentQueue.concat(queue); |
| 23354 | } else { |
| 23355 | queueIndex = -1; |
| 23356 | } |
| 23357 | if (queue.length) { |
| 23358 | drainQueue(); |
| 23359 | } |
| 23360 | } |
| 23361 | |
| 23362 | function drainQueue() { |
| 23363 | if (draining) { |
nothing calls this directly
no test coverage detected