(state)
| 17410 | } |
| 17411 | |
| 17412 | function scheduleProcessQueue(state) { |
| 17413 | if (errorOnUnhandledRejections && !state.pending && state.status === 2 && !isStateExceptionHandled(state)) { |
| 17414 | if (queueSize === 0 && checkQueue.length === 0) { |
| 17415 | nextTick(processChecks); |
| 17416 | } |
| 17417 | checkQueue.push(state); |
| 17418 | } |
| 17419 | if (state.processScheduled || !state.pending) return; |
| 17420 | state.processScheduled = true; |
| 17421 | ++queueSize; |
| 17422 | nextTick(function() { processQueue(state); }); |
| 17423 | } |
| 17424 | |
| 17425 | function resolvePromise(promise, val) { |
| 17426 | if (promise.$$state.status) return; |
no test coverage detected