(state)
| 17181 | } |
| 17182 | |
| 17183 | function scheduleProcessQueue(state) { |
| 17184 | if (errorOnUnhandledRejections && !state.pending && state.status === 2 && !isStateExceptionHandled(state)) { |
| 17185 | if (queueSize === 0 && checkQueue.length === 0) { |
| 17186 | nextTick(processChecks); |
| 17187 | } |
| 17188 | checkQueue.push(state); |
| 17189 | } |
| 17190 | if (state.processScheduled || !state.pending) return; |
| 17191 | state.processScheduled = true; |
| 17192 | ++queueSize; |
| 17193 | nextTick(function() { processQueue(state); }); |
| 17194 | } |
| 17195 | |
| 17196 | function resolvePromise(promise, val) { |
| 17197 | if (promise.$$state.status) return; |
no test coverage detected