()
| 1102 | var queueIndex = -1; |
| 1103 | |
| 1104 | function cleanUpNextTick() { |
| 1105 | if (!draining || !currentQueue) { |
| 1106 | return; |
| 1107 | } |
| 1108 | draining = false; |
| 1109 | if (currentQueue.length) { |
| 1110 | queue = currentQueue.concat(queue); |
| 1111 | } else { |
| 1112 | queueIndex = -1; |
| 1113 | } |
| 1114 | if (queue.length) { |
| 1115 | drainQueue(); |
| 1116 | } |
| 1117 | } |
| 1118 | |
| 1119 | function drainQueue() { |
| 1120 | if (draining) { |
nothing calls this directly
no test coverage detected