code: function ReadableStreamReaderGenericCancel(reader, reason) {
    const stream = reader._ownerReadableStream;
    assert(stream !== undefined);
    return ReadableStreamCancel(stream, reason);
  }
docs: A client of ReadableStreamDefaultReader and ReadableStreamBYOBReader may use these functions directly to bypass state check.