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

> +  constructor(controlledReadableByteStream, underlyingByteSource) {
> +    if (IsReadableByteStream(controlledReadableByteStream) === false) {
> +      throw new TypeError('ReadableByteStreamController can only be constructed with a ReadableByteStream instance');
> +    }
> +
> +    if (controlledReadableByteStream._controller !== undefined) {
> +      throw new TypeError(
> +          'ReadableByteStreamController instances can only be created by the ReadableByteStream constructor');
> +    }
> +
> +    this._controlledReadableByteStream = controlledReadableByteStream;
> +
> +    this._underlyingByteSource = underlyingByteSource;
> +
> +    this._considerReissueUnderlyingByteSourcePullOrPullInto = false;
> +    this._insideUnderlyingByteSource = false;

Done 48a23cdb61248cfce57834503a184d54b8fe2980

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

Received on Wednesday, 1 July 2015 14:02:44 UTC