Re: [streams] Have each of the stream and reader hold promises (#277)

>  export function CloseReadableStream(stream) {
> -  stream._state = 'closed';
> +  if (stream._readableStreamReader !== undefined) {
> +    if (stream._state === 'waiting') {
> +      stream._readableStreamReader._resolveReadyPromise(undefined);
> +    }
> +
> +    // rs.ready() was pending because there was a reader.
> +    stream._resolveReadyPromise(undefined);

NVM. It was not a bug...

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

Received on Friday, 6 February 2015 09:50:25 UTC