()
| 852 | var queueIndex = -1; |
| 853 | |
| 854 | function cleanUpNextTick() { |
| 855 | if (!draining || !currentQueue) { |
| 856 | return; |
| 857 | } |
| 858 | draining = false; |
| 859 | if (currentQueue.length) { |
| 860 | queue = currentQueue.concat(queue); |
| 861 | } else { |
| 862 | queueIndex = -1; |
| 863 | } |
| 864 | if (queue.length) { |
| 865 | drainQueue(); |
| 866 | } |
| 867 | } |
| 868 | |
| 869 | function drainQueue() { |
| 870 | if (draining) { |
nothing calls this directly
no test coverage detected