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

You're right! It's a typo. I fixed this and also the bug in enqueue(), and added tests for them. f2a9f0721871be0531bf6db33f556187c318d0d6

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

Received on Tuesday, 30 June 2015 09:52:14 UTC