Re: [streams] Initialize variables of ReadableStreamReader to the final value direc… (#373)

>    }
> +
> +  for (const { _reject } of reader._readRequests) {
> +    _reject(e);
> +  }
> +  reader._readRequests = [];
> +
> +  ReleaseReadableStreamReader(reader);

This call is placed here so that this would be parallel with RBS. In RBS I'm calling this right after flushing read requests because whether we release the reader or not depends on emptiness of read requests queue.

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

Received on Tuesday, 7 July 2015 07:06:53 UTC