While working on the DevTools profiler, I've noticed that durations are sometimes incorrect. This seems to be vaguely related to high/low priority state updates. Need to track this down more so I'm filing an issue for myself.
}
    }
    break;
  } while (true);
  
  isWorking = false;
  ReactCurrentOwner.currentDispatcher = null;
  resetContextDependences();
  
  if (didFatal) {
    const didCompleteRoot = false;
    stopWorkLoopTimer(interruptedBy, didCompleteRoot);
    interruptedBy = null;
    
    if (__DEV__) {
      resetStackAfterFatalErrorInDev();
      
      
      resetActualRenderTimerStackAfterFatalErrorInDev();
    }
    
    
    
    nextRoot = null;
    onFatal(root);
    return;
  }
  if (nextUnitOfWork !== null) {