()
| 5822 | } |
| 5823 | |
| 5824 | function drainQueue() { |
| 5825 | if (draining) { |
| 5826 | return; |
| 5827 | } |
| 5828 | var timeout = runTimeout(cleanUpNextTick); |
| 5829 | draining = true; |
| 5830 | |
| 5831 | var len = queue.length; |
| 5832 | while(len) { |
| 5833 | currentQueue = queue; |
| 5834 | queue = []; |
| 5835 | while (++queueIndex < len) { |
| 5836 | if (currentQueue) { |
| 5837 | currentQueue[queueIndex].run(); |
| 5838 | } |
| 5839 | } |
| 5840 | queueIndex = -1; |
| 5841 | len = queue.length; |
| 5842 | } |
| 5843 | currentQueue = null; |
| 5844 | draining = false; |
| 5845 | runClearTimeout(timeout); |
| 5846 | } |
| 5847 | |
| 5848 | process.nextTick = function (fun) { |
| 5849 | var args = new Array(arguments.length - 1); |
no test coverage detected
searching dependent graphs…