(state)
| 17366 | } |
| 17367 | |
| 17368 | function scheduleProcessQueue(state) { |
| 17369 | if (errorOnUnhandledRejections && !state.pending && state.status === 2 && !isStateExceptionHandled(state)) { |
| 17370 | if (queueSize === 0 && checkQueue.length === 0) { |
| 17371 | nextTick(processChecks); |
| 17372 | } |
| 17373 | checkQueue.push(state); |
| 17374 | } |
| 17375 | if (state.processScheduled || !state.pending) return; |
| 17376 | state.processScheduled = true; |
| 17377 | ++queueSize; |
| 17378 | nextTick(function() { processQueue(state); }); |
| 17379 | } |
| 17380 | |
| 17381 | function resolvePromise(promise, val) { |
| 17382 | if (promise.$$state.status) return; |
no test coverage detected