(config)
| 12932 | } |
| 12933 | |
| 12934 | var ReactFiberScheduler = function (config) { |
| 12935 | var stack = ReactFiberStack(); |
| 12936 | var hostContext = ReactFiberHostContext(config, stack); |
| 12937 | var legacyContext = ReactFiberLegacyContext(stack); |
| 12938 | var newContext = ReactFiberNewContext(stack); |
| 12939 | var popHostContext = hostContext.popHostContext, |
| 12940 | popHostContainer = hostContext.popHostContainer; |
| 12941 | var popTopLevelLegacyContextObject = legacyContext.popTopLevelContextObject, |
| 12942 | popLegacyContextProvider = legacyContext.popContextProvider; |
| 12943 | var popProvider = newContext.popProvider; |
| 12944 | |
| 12945 | var hydrationContext = ReactFiberHydrationContext(config); |
| 12946 | |
| 12947 | var _ReactFiberBeginWork = ReactFiberBeginWork(config, hostContext, legacyContext, newContext, hydrationContext, scheduleWork, computeExpirationForFiber), |
| 12948 | beginWork = _ReactFiberBeginWork.beginWork; |
| 12949 | |
| 12950 | var _ReactFiberCompleteWo = ReactFiberCompleteWork(config, hostContext, legacyContext, newContext, hydrationContext), |
| 12951 | completeWork = _ReactFiberCompleteWo.completeWork; |
| 12952 | |
| 12953 | var _ReactFiberUnwindWork = ReactFiberUnwindWork(hostContext, legacyContext, newContext, scheduleWork, isAlreadyFailedLegacyErrorBoundary), |
| 12954 | throwException = _ReactFiberUnwindWork.throwException, |
| 12955 | unwindWork = _ReactFiberUnwindWork.unwindWork, |
| 12956 | unwindInterruptedWork = _ReactFiberUnwindWork.unwindInterruptedWork; |
| 12957 | |
| 12958 | var _ReactFiberCommitWork = ReactFiberCommitWork(config, onCommitPhaseError, scheduleWork, computeExpirationForFiber, markLegacyErrorBoundaryAsFailed, recalculateCurrentTime), |
| 12959 | commitResetTextContent = _ReactFiberCommitWork.commitResetTextContent, |
| 12960 | commitPlacement = _ReactFiberCommitWork.commitPlacement, |
| 12961 | commitDeletion = _ReactFiberCommitWork.commitDeletion, |
| 12962 | commitWork = _ReactFiberCommitWork.commitWork, |
| 12963 | commitLifeCycles = _ReactFiberCommitWork.commitLifeCycles, |
| 12964 | commitErrorLogging = _ReactFiberCommitWork.commitErrorLogging, |
| 12965 | commitAttachRef = _ReactFiberCommitWork.commitAttachRef, |
| 12966 | commitDetachRef = _ReactFiberCommitWork.commitDetachRef; |
| 12967 | |
| 12968 | var now = config.now, |
| 12969 | scheduleDeferredCallback = config.scheduleDeferredCallback, |
| 12970 | cancelDeferredCallback = config.cancelDeferredCallback, |
| 12971 | prepareForCommit = config.prepareForCommit, |
| 12972 | resetAfterCommit = config.resetAfterCommit; |
| 12973 | |
| 12974 | // Represents the current time in ms. |
| 12975 | |
| 12976 | var originalStartTimeMs = now(); |
| 12977 | var mostRecentCurrentTime = msToExpirationTime(0); |
| 12978 | var mostRecentCurrentTimeMs = originalStartTimeMs; |
| 12979 | |
| 12980 | // Used to ensure computeUniqueAsyncExpiration is monotonically increases. |
| 12981 | var lastUniqueAsyncExpiration = 0; |
| 12982 | |
| 12983 | // Represents the expiration time that incoming updates should use. (If this |
| 12984 | // is NoWork, use the default strategy: async updates in async mode, sync |
| 12985 | // updates in sync mode.) |
| 12986 | var expirationContext = NoWork; |
| 12987 | |
| 12988 | var isWorking = false; |
| 12989 | |
| 12990 | // The next work in progress fiber that we're currently working on. |
| 12991 | var nextUnitOfWork = null; |
no test coverage detected