()
| 944 | var queueIndex = -1; |
| 945 | |
| 946 | function cleanUpNextTick() { |
| 947 | if (!draining || !currentQueue) { |
| 948 | return; |
| 949 | } |
| 950 | draining = false; |
| 951 | if (currentQueue.length) { |
| 952 | queue = currentQueue.concat(queue); |
| 953 | } else { |
| 954 | queueIndex = -1; |
| 955 | } |
| 956 | if (queue.length) { |
| 957 | drainQueue(); |
| 958 | } |
| 959 | } |
| 960 | |
| 961 | function drainQueue() { |
| 962 | if (draining) { |
nothing calls this directly
no test coverage detected