(returnValue, resolve, reject)
| 1413 | actScopeDepth = prevActScopeDepth; |
| 1414 | } |
| 1415 | function recursivelyFlushAsyncActWork(returnValue, resolve, reject) { |
| 1416 | var queue = ReactSharedInternals.actQueue; |
| 1417 | if (null !== queue) |
| 1418 | if (0 !== queue.length) |
| 1419 | try { |
| 1420 | flushActQueue(queue); |
| 1421 | enqueueTask(function () { |
| 1422 | return recursivelyFlushAsyncActWork(returnValue, resolve, reject); |
| 1423 | }); |
| 1424 | return; |
| 1425 | } catch (error) { |
| 1426 | ReactSharedInternals.thrownErrors.push(error); |
| 1427 | } |
| 1428 | else ReactSharedInternals.actQueue = null; |
| 1429 | 0 < ReactSharedInternals.thrownErrors.length |
| 1430 | ? ((queue = aggregateErrors(ReactSharedInternals.thrownErrors)), |
| 1431 | (ReactSharedInternals.thrownErrors.length = 0), |
| 1432 | reject(queue)) |
| 1433 | : resolve(returnValue); |
| 1434 | } |
| 1435 | function flushActQueue(queue) { |
| 1436 | if (!isFlushing) { |
| 1437 | isFlushing = !0; |
no test coverage detected
searching dependent graphs…