()
| 724 | var queueIndex = -1; |
| 725 | |
| 726 | function cleanUpNextTick() { |
| 727 | if (!draining || !currentQueue) { |
| 728 | return; |
| 729 | } |
| 730 | draining = false; |
| 731 | if (currentQueue.length) { |
| 732 | queue = currentQueue.concat(queue); |
| 733 | } else { |
| 734 | queueIndex = -1; |
| 735 | } |
| 736 | if (queue.length) { |
| 737 | drainQueue(); |
| 738 | } |
| 739 | } |
| 740 | |
| 741 | function drainQueue() { |
| 742 | if (draining) { |
nothing calls this directly
no test coverage detected