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.

I thought "let" is used for declaring/substituting to local variables while set is used for substituting new value to a slot. I'm just misunderstanding your style rule or this "let" should be "set"?

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

Received on Wednesday, 26 August 2015 08:02:58 UTC