canvasMaxAreaInBytes in DocumentInitParameters has type Boolean, preventing TypeScript users from passing the correct (numeric) value.
}
    intentState.streamReader
      .cancel(new AbortException(reason.message))
      .catch(() => {
        
      });
    intentState.streamReader = null;
    if (this._transport.destroyed) {
      return; 
    }
    
    
    for (const [curCacheKey, curIntentState] of this._intentStates) {
      if (curIntentState === intentState) {
        this._intentStates.delete(curCacheKey);
        break;
      }
    }
    
    this.cleanup();
  }
  /**
   * @type {StatTimer | null} Returns page stats, if enabled; returns `null`
   *   otherwise.
   */
  get stats() {
    return this._stats;
  }
}
class LoopbackPort {