Got this debugging another error. Filing here for reference. Original code: https://phabricator.intern.facebook.com/P59317705
workInProgress: Fiber,
    renderTime: ExpirationTime,
  ) {
    if (renderTime !== Never && workInProgress.expirationTime === Never) {
      
      
      return;
    }
    
    let newExpirationTime = getUpdateExpirationTime(workInProgress);
    
    
    let child = workInProgress.child;
    while (child !== null) {
      if (
        child.expirationTime !== NoWork &&
        (newExpirationTime === NoWork ||
          newExpirationTime > child.expirationTime)
      ) {
        newExpirationTime = child.expirationTime;
      }
      child = child.sibling;
    }
    workInProgress.expirationTime = newExpirationTime;
  }
  function completeUnitOfWork(workInProgress: Fiber): Fiber | null {
    
    
    
    while (true) {