()
| 845 | var queueIndex = -1; |
| 846 | |
| 847 | function cleanUpNextTick() { |
| 848 | if (!draining || !currentQueue) { |
| 849 | return; |
| 850 | } |
| 851 | draining = false; |
| 852 | if (currentQueue.length) { |
| 853 | queue = currentQueue.concat(queue); |
| 854 | } else { |
| 855 | queueIndex = -1; |
| 856 | } |
| 857 | if (queue.length) { |
| 858 | drainQueue(); |
| 859 | } |
| 860 | } |
| 861 | |
| 862 | function drainQueue() { |
| 863 | if (draining) { |
nothing calls this directly
no test coverage detected