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

> +    }
> +
> +    if (this._state === 'closed') {
> +      return Promise.resolve(undefined);
> +    }
> +
> +    if (this._state === 'errored') {
> +      return Promise.reject(this._storedError);
> +    }
> +
> +    assert(this._ownerReadableByteStream !== undefined, 'This stream must be attached to a stream');
> +
> +    return CancelReadableByteStream(this._ownerReadableByteStream, reason);
> +  }
> +
> +  read(view) {

Or maybe the spec is just not updated yet, sorry.

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

Received on Thursday, 11 June 2015 21:00:31 UTC