Re: [streams] Byte stream update, including reference implementation (#361)

> +      this._closeRequested = true;
> +
> +      return;
> +    }
> +
> +    const reader = stream._reader;
> +
> +    if (reader === undefined || IsReadableByteStreamReader(reader)) {
> +      CloseReadableByteStream(stream);
> +      return;
> +    }
> +
> +    assert(IsReadableByteStreamByobReader(reader), 'reader must be ReadableByteStreamByobReader');
> +
> +    if (this._pendingPullIntos.length > 0 && this._pendingPullIntos[0].bytesFilled > 0) {
> +      DestroyReadableByteStreamController(this);

Ya. For now I'll leave them as is.

---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/pull/361/files#r33748465

Received on Thursday, 2 July 2015 05:38:45 UTC