(currentTime)
| 3342 | } |
| 3343 | |
| 3344 | function handleTimeout(currentTime) { |
| 3345 | isHostTimeoutScheduled = false; |
| 3346 | advanceTimers(currentTime); |
| 3347 | |
| 3348 | if (!isHostCallbackScheduled) { |
| 3349 | if (peek(taskQueue) !== null) { |
| 3350 | isHostCallbackScheduled = true; |
| 3351 | requestHostCallback(flushWork); |
| 3352 | } else { |
| 3353 | var firstTimer = peek(timerQueue); |
| 3354 | |
| 3355 | if (firstTimer !== null) { |
| 3356 | requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime); |
| 3357 | } |
| 3358 | } |
| 3359 | } |
| 3360 | } |
| 3361 | |
| 3362 | function flushWork(hasTimeRemaining, initialTime) { |
| 3363 | { |
nothing calls this directly
no test coverage detected