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

> +
> +    this._queue = [];
> +    this._totalQueuedBytes = 0;
> +
> +    InvokeOrNoop(underlyingByteSource, 'start', [this]);
> +  }
> +
> +  close() {
> +    if (!IsReadableByteStreamController(this)) {
> +      throw new TypeError(
> +          'ReadableByteStreamController.prototype.close can only be used on a ReadableByteStreamController');
> +    }
> +
> +    const stream = this._controlledReadableByteStream;
> +
> +    if (stream._closeRequested) {

And initialize. 186a2626e0b9f5825ccc10a769dc0e4f558c3f11

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

Received on Tuesday, 30 June 2015 09:53:25 UTC