()
| 23956 | var queueIndex = -1; |
| 23957 | |
| 23958 | function cleanUpNextTick() { |
| 23959 | if (!draining || !currentQueue) { |
| 23960 | return; |
| 23961 | } |
| 23962 | draining = false; |
| 23963 | if (currentQueue.length) { |
| 23964 | queue = currentQueue.concat(queue); |
| 23965 | } else { |
| 23966 | queueIndex = -1; |
| 23967 | } |
| 23968 | if (queue.length) { |
| 23969 | drainQueue(); |
| 23970 | } |
| 23971 | } |
| 23972 | |
| 23973 | function drainQueue() { |
| 23974 | if (draining) { |
nothing calls this directly
no test coverage detected