(state)
| 18049 | } |
| 18050 | |
| 18051 | function scheduleProcessQueue(state) { |
| 18052 | if (errorOnUnhandledRejections && !state.pending && state.status === 2 && !isStateExceptionHandled(state)) { |
| 18053 | if (queueSize === 0 && checkQueue.length === 0) { |
| 18054 | nextTick(processChecks); |
| 18055 | } |
| 18056 | checkQueue.push(state); |
| 18057 | } |
| 18058 | if (state.processScheduled || !state.pending) return; |
| 18059 | state.processScheduled = true; |
| 18060 | ++queueSize; |
| 18061 | nextTick(function() { processQueue(state); }); |
| 18062 | } |
| 18063 | |
| 18064 | function resolvePromise(promise, val) { |
| 18065 | if (promise.$$state.status) return; |
no test coverage detected