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

The spec has this factored out into an abstract operation

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

Received on Thursday, 11 June 2015 20:59:40 UTC