()
| 815 | var queueIndex = -1; |
| 816 | |
| 817 | function cleanUpNextTick() { |
| 818 | if (!draining || !currentQueue) { |
| 819 | return; |
| 820 | } |
| 821 | draining = false; |
| 822 | if (currentQueue.length) { |
| 823 | queue = currentQueue.concat(queue); |
| 824 | } else { |
| 825 | queueIndex = -1; |
| 826 | } |
| 827 | if (queue.length) { |
| 828 | drainQueue(); |
| 829 | } |
| 830 | } |
| 831 | |
| 832 | function drainQueue() { |
| 833 | if (draining) { |
nothing calls this directly
no test coverage detected