(state)
| 17984 | } |
| 17985 | |
| 17986 | function scheduleProcessQueue(state) { |
| 17987 | if (errorOnUnhandledRejections && !state.pending && state.status === 2 && !isStateExceptionHandled(state)) { |
| 17988 | if (queueSize === 0 && checkQueue.length === 0) { |
| 17989 | nextTick(processChecks); |
| 17990 | } |
| 17991 | checkQueue.push(state); |
| 17992 | } |
| 17993 | if (state.processScheduled || !state.pending) return; |
| 17994 | state.processScheduled = true; |
| 17995 | ++queueSize; |
| 17996 | nextTick(function() { processQueue(state); }); |
| 17997 | } |
| 17998 | |
| 17999 | function resolvePromise(promise, val) { |
| 18000 | if (promise.$$state.status) return; |
no test coverage detected