(config)
| 12819 | } |
| 12820 | |
| 12821 | var ReactFiberScheduler = function (config) { |
| 12822 | var stack = ReactFiberStack(); |
| 12823 | var hostContext = ReactFiberHostContext(config, stack); |
| 12824 | var legacyContext = ReactFiberLegacyContext(stack); |
| 12825 | var newContext = ReactFiberNewContext(stack); |
| 12826 | var popHostContext = hostContext.popHostContext, |
| 12827 | popHostContainer = hostContext.popHostContainer; |
| 12828 | var popTopLevelLegacyContextObject = legacyContext.popTopLevelContextObject, |
| 12829 | popLegacyContextProvider = legacyContext.popContextProvider; |
| 12830 | var popProvider = newContext.popProvider; |
| 12831 | |
| 12832 | var hydrationContext = ReactFiberHydrationContext(config); |
| 12833 | |
| 12834 | var _ReactFiberBeginWork = ReactFiberBeginWork(config, hostContext, legacyContext, newContext, hydrationContext, scheduleWork, computeExpirationForFiber), |
| 12835 | beginWork = _ReactFiberBeginWork.beginWork; |
| 12836 | |
| 12837 | var _ReactFiberCompleteWo = ReactFiberCompleteWork(config, hostContext, legacyContext, newContext, hydrationContext), |
| 12838 | completeWork = _ReactFiberCompleteWo.completeWork; |
| 12839 | |
| 12840 | var _ReactFiberUnwindWork = ReactFiberUnwindWork(hostContext, legacyContext, newContext, scheduleWork, isAlreadyFailedLegacyErrorBoundary), |
| 12841 | throwException = _ReactFiberUnwindWork.throwException, |
| 12842 | unwindWork = _ReactFiberUnwindWork.unwindWork, |
| 12843 | unwindInterruptedWork = _ReactFiberUnwindWork.unwindInterruptedWork; |
| 12844 | |
| 12845 | var _ReactFiberCommitWork = ReactFiberCommitWork(config, onCommitPhaseError, scheduleWork, computeExpirationForFiber, markLegacyErrorBoundaryAsFailed, recalculateCurrentTime), |
| 12846 | commitResetTextContent = _ReactFiberCommitWork.commitResetTextContent, |
| 12847 | commitPlacement = _ReactFiberCommitWork.commitPlacement, |
| 12848 | commitDeletion = _ReactFiberCommitWork.commitDeletion, |
| 12849 | commitWork = _ReactFiberCommitWork.commitWork, |
| 12850 | commitLifeCycles = _ReactFiberCommitWork.commitLifeCycles, |
| 12851 | commitErrorLogging = _ReactFiberCommitWork.commitErrorLogging, |
| 12852 | commitAttachRef = _ReactFiberCommitWork.commitAttachRef, |
| 12853 | commitDetachRef = _ReactFiberCommitWork.commitDetachRef; |
| 12854 | |
| 12855 | var now = config.now, |
| 12856 | scheduleDeferredCallback = config.scheduleDeferredCallback, |
| 12857 | cancelDeferredCallback = config.cancelDeferredCallback, |
| 12858 | prepareForCommit = config.prepareForCommit, |
| 12859 | resetAfterCommit = config.resetAfterCommit; |
| 12860 | |
| 12861 | // Represents the current time in ms. |
| 12862 | |
| 12863 | var originalStartTimeMs = now(); |
| 12864 | var mostRecentCurrentTime = msToExpirationTime(0); |
| 12865 | var mostRecentCurrentTimeMs = originalStartTimeMs; |
| 12866 | |
| 12867 | // Used to ensure computeUniqueAsyncExpiration is monotonically increases. |
| 12868 | var lastUniqueAsyncExpiration = 0; |
| 12869 | |
| 12870 | // Represents the expiration time that incoming updates should use. (If this |
| 12871 | // is NoWork, use the default strategy: async updates in async mode, sync |
| 12872 | // updates in sync mode.) |
| 12873 | var expirationContext = NoWork; |
| 12874 | |
| 12875 | var isWorking = false; |
| 12876 | |
| 12877 | // The next work in progress fiber that we're currently working on. |
| 12878 | var nextUnitOfWork = null; |
no test coverage detected