()
| 989 | var queueIndex = -1; |
| 990 | |
| 991 | function cleanUpNextTick() { |
| 992 | if (!draining || !currentQueue) { |
| 993 | return; |
| 994 | } |
| 995 | draining = false; |
| 996 | if (currentQueue.length) { |
| 997 | queue = currentQueue.concat(queue); |
| 998 | } else { |
| 999 | queueIndex = -1; |
| 1000 | } |
| 1001 | if (queue.length) { |
| 1002 | drainQueue(); |
| 1003 | } |
| 1004 | } |
| 1005 | |
| 1006 | function drainQueue() { |
| 1007 | if (draining) { |
nothing calls this directly
no test coverage detected