(config)
| 12716 | } |
| 12717 | |
| 12718 | var ReactFiberScheduler = function (config) { |
| 12719 | var stack = ReactFiberStack(); |
| 12720 | var hostContext = ReactFiberHostContext(config, stack); |
| 12721 | var legacyContext = ReactFiberLegacyContext(stack); |
| 12722 | var newContext = ReactFiberNewContext(stack); |
| 12723 | var popHostContext = hostContext.popHostContext, |
| 12724 | popHostContainer = hostContext.popHostContainer; |
| 12725 | var popTopLevelLegacyContextObject = legacyContext.popTopLevelContextObject, |
| 12726 | popLegacyContextProvider = legacyContext.popContextProvider; |
| 12727 | var popProvider = newContext.popProvider; |
| 12728 | |
| 12729 | var hydrationContext = ReactFiberHydrationContext(config); |
| 12730 | |
| 12731 | var _ReactFiberBeginWork = ReactFiberBeginWork(config, hostContext, legacyContext, newContext, hydrationContext, scheduleWork, computeExpirationForFiber), |
| 12732 | beginWork = _ReactFiberBeginWork.beginWork; |
| 12733 | |
| 12734 | var _ReactFiberCompleteWo = ReactFiberCompleteWork(config, hostContext, legacyContext, newContext, hydrationContext), |
| 12735 | completeWork = _ReactFiberCompleteWo.completeWork; |
| 12736 | |
| 12737 | var _ReactFiberUnwindWork = ReactFiberUnwindWork(hostContext, legacyContext, newContext, scheduleWork, isAlreadyFailedLegacyErrorBoundary), |
| 12738 | throwException = _ReactFiberUnwindWork.throwException, |
| 12739 | unwindWork = _ReactFiberUnwindWork.unwindWork, |
| 12740 | unwindInterruptedWork = _ReactFiberUnwindWork.unwindInterruptedWork; |
| 12741 | |
| 12742 | var _ReactFiberCommitWork = ReactFiberCommitWork(config, onCommitPhaseError, scheduleWork, computeExpirationForFiber, markLegacyErrorBoundaryAsFailed, recalculateCurrentTime), |
| 12743 | commitResetTextContent = _ReactFiberCommitWork.commitResetTextContent, |
| 12744 | commitPlacement = _ReactFiberCommitWork.commitPlacement, |
| 12745 | commitDeletion = _ReactFiberCommitWork.commitDeletion, |
| 12746 | commitWork = _ReactFiberCommitWork.commitWork, |
| 12747 | commitLifeCycles = _ReactFiberCommitWork.commitLifeCycles, |
| 12748 | commitErrorLogging = _ReactFiberCommitWork.commitErrorLogging, |
| 12749 | commitAttachRef = _ReactFiberCommitWork.commitAttachRef, |
| 12750 | commitDetachRef = _ReactFiberCommitWork.commitDetachRef; |
| 12751 | |
| 12752 | var now = config.now, |
| 12753 | scheduleDeferredCallback = config.scheduleDeferredCallback, |
| 12754 | cancelDeferredCallback = config.cancelDeferredCallback, |
| 12755 | prepareForCommit = config.prepareForCommit, |
| 12756 | resetAfterCommit = config.resetAfterCommit; |
| 12757 | |
| 12758 | // Represents the current time in ms. |
| 12759 | |
| 12760 | var originalStartTimeMs = now(); |
| 12761 | var mostRecentCurrentTime = msToExpirationTime(0); |
| 12762 | var mostRecentCurrentTimeMs = originalStartTimeMs; |
| 12763 | |
| 12764 | // Used to ensure computeUniqueAsyncExpiration is monotonically increases. |
| 12765 | var lastUniqueAsyncExpiration = 0; |
| 12766 | |
| 12767 | // Represents the expiration time that incoming updates should use. (If this |
| 12768 | // is NoWork, use the default strategy: async updates in async mode, sync |
| 12769 | // updates in sync mode.) |
| 12770 | var expirationContext = NoWork; |
| 12771 | |
| 12772 | var isWorking = false; |
| 12773 | |
| 12774 | // The next work in progress fiber that we're currently working on. |
| 12775 | var nextUnitOfWork = null; |
no test coverage detected