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

> +    return;
> +  }
> +
> +  const stream = controller._controlledReadableByteStream;
> +
> +  if (typeof pullFunction !== 'function') {
> +    DestroyReadableByteStreamController(controller);
> +    ErrorReadableByteStream(stream, new TypeError('pull property of an underlying byte source must be a function'));
> +    return;
> +  }
> +
> +  controller._callPullOrPullIntoLaterIfNeeded = false;
> +  controller._insideUnderlyingByteSource = true;
> +
> +  try {
> +    pullFunction.apply(source);

Done 95cb1d5e456771b090547a68bbe122f11a272c29

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

Received on Wednesday, 1 July 2015 07:23:23 UTC