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

Nit: more idiomatic to use `.call`

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

Received on Tuesday, 30 June 2015 08:51:00 UTC