Got this debugging another error. Filing here for reference. Original code: https://phabricator.intern.facebook.com/P59317705
case ClassComponent:
          const ctor = fiber.type;
          const instance = fiber.stateNode;
          if (
            typeof ctor.getDerivedStateFromCatch === 'function' ||
            (typeof instance.componentDidCatch === 'function' &&
              !isAlreadyFailedLegacyErrorBoundary(instance))
          ) {
            scheduleCapture(sourceFiber, fiber, value, expirationTime);
            return;
          }
          break;
        
        case HostRoot:
          scheduleCapture(sourceFiber, fiber, value, expirationTime);