Re: [streams] Add IsReadableStreamDisturbed predicate (#385)

> @@ -855,7 +848,10 @@ Instances of <code>ReadableStreamReader</code> are created with the internal slo
>    1. If IsReadableStreamReader(*this*) is *false*, throw a *TypeError* exception.
>    1. If *this*@[[ownerReadableStream]] is *undefined*, return *undefined*.
>    1. If *this*@[[readRequests]] is not empty, throw a *TypeError* exception.
> -  1. Perform CloseReadableStreamReader(*this*).
> +  1. If *this*@[[ownerReadableStream]]@[[state]] is `"readable"`, reject *this*@[[closedPromise]] with a *TypeError* exception.
> +  1. Otherwise, let *this*@[[closedPromise]] be a new promise rejected with a *TypeError* exception.

Do we really need to set a new rejected promise to [[closedPromise]] here?

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

Received on Wednesday, 26 August 2015 08:14:33 UTC