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) {

Sorry. Right. The spec is not sync with the ref impl yet.

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

Received on Tuesday, 16 June 2015 07:44:20 UTC