(config)
| 11914 | } |
| 11915 | |
| 11916 | var ReactFiberScheduler = function (config) { |
| 11917 | var stack = ReactFiberStack(); |
| 11918 | var hostContext = ReactFiberHostContext(config, stack); |
| 11919 | var legacyContext = ReactFiberLegacyContext(stack); |
| 11920 | var newContext = ReactFiberNewContext(stack); |
| 11921 | var popHostContext = hostContext.popHostContext, |
| 11922 | popHostContainer = hostContext.popHostContainer; |
| 11923 | var popTopLevelLegacyContextObject = legacyContext.popTopLevelContextObject, |
| 11924 | popLegacyContextProvider = legacyContext.popContextProvider; |
| 11925 | var popProvider = newContext.popProvider; |
| 11926 | |
| 11927 | var hydrationContext = ReactFiberHydrationContext(config); |
| 11928 | |
| 11929 | var _ReactFiberBeginWork = ReactFiberBeginWork(config, hostContext, legacyContext, newContext, hydrationContext, scheduleWork, computeExpirationForFiber), |
| 11930 | beginWork = _ReactFiberBeginWork.beginWork; |
| 11931 | |
| 11932 | var _ReactFiberCompleteWo = ReactFiberCompleteWork(config, hostContext, legacyContext, newContext, hydrationContext), |
| 11933 | completeWork = _ReactFiberCompleteWo.completeWork; |
| 11934 | |
| 11935 | var _ReactFiberUnwindWork = ReactFiberUnwindWork(hostContext, legacyContext, newContext, scheduleWork, isAlreadyFailedLegacyErrorBoundary), |
| 11936 | throwException = _ReactFiberUnwindWork.throwException, |
| 11937 | unwindWork = _ReactFiberUnwindWork.unwindWork, |
| 11938 | unwindInterruptedWork = _ReactFiberUnwindWork.unwindInterruptedWork; |
| 11939 | |
| 11940 | var _ReactFiberCommitWork = ReactFiberCommitWork(config, onCommitPhaseError, scheduleWork, computeExpirationForFiber, markLegacyErrorBoundaryAsFailed, recalculateCurrentTime), |
| 11941 | commitResetTextContent = _ReactFiberCommitWork.commitResetTextContent, |
| 11942 | commitPlacement = _ReactFiberCommitWork.commitPlacement, |
| 11943 | commitDeletion = _ReactFiberCommitWork.commitDeletion, |
| 11944 | commitWork = _ReactFiberCommitWork.commitWork, |
| 11945 | commitLifeCycles = _ReactFiberCommitWork.commitLifeCycles, |
| 11946 | commitErrorLogging = _ReactFiberCommitWork.commitErrorLogging, |
| 11947 | commitAttachRef = _ReactFiberCommitWork.commitAttachRef, |
| 11948 | commitDetachRef = _ReactFiberCommitWork.commitDetachRef; |
| 11949 | |
| 11950 | var now = config.now, |
| 11951 | scheduleDeferredCallback = config.scheduleDeferredCallback, |
| 11952 | cancelDeferredCallback = config.cancelDeferredCallback, |
| 11953 | prepareForCommit = config.prepareForCommit, |
| 11954 | resetAfterCommit = config.resetAfterCommit; |
| 11955 | |
| 11956 | // Represents the current time in ms. |
| 11957 | |
| 11958 | var originalStartTimeMs = now(); |
| 11959 | var mostRecentCurrentTime = msToExpirationTime(0); |
| 11960 | var mostRecentCurrentTimeMs = originalStartTimeMs; |
| 11961 | |
| 11962 | // Used to ensure computeUniqueAsyncExpiration is monotonically increases. |
| 11963 | var lastUniqueAsyncExpiration = 0; |
| 11964 | |
| 11965 | // Represents the expiration time that incoming updates should use. (If this |
| 11966 | // is NoWork, use the default strategy: async updates in async mode, sync |
| 11967 | // updates in sync mode.) |
| 11968 | var expirationContext = NoWork; |
| 11969 | |
| 11970 | var isWorking = false; |
| 11971 | |
| 11972 | // The next work in progress fiber that we're currently working on. |
| 11973 | var nextUnitOfWork = null; |
no test coverage detected