()
| 886 | var queueIndex = -1; |
| 887 | |
| 888 | function cleanUpNextTick() { |
| 889 | if (!draining || !currentQueue) { |
| 890 | return; |
| 891 | } |
| 892 | draining = false; |
| 893 | if (currentQueue.length) { |
| 894 | queue = currentQueue.concat(queue); |
| 895 | } else { |
| 896 | queueIndex = -1; |
| 897 | } |
| 898 | if (queue.length) { |
| 899 | drainQueue(); |
| 900 | } |
| 901 | } |
| 902 | |
| 903 | function drainQueue() { |
| 904 | if (draining) { |
nothing calls this directly
no test coverage detected