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

> @@ -446,14 +442,7 @@ Instances of <code>ReadableStream</code> are created with the internal slots des
>  <ol>
>    <li> If IsReadableStream(<b>this</b>) is <b>false</b>, return a promise rejected with a <b>TypeError</b> exception.
>    <li> If <b>this</b>@\[[readableStreamReader]] is not <b>undefined</b>, return a new promise rejected with a <b>TypeError</b>.
> -  <li> If <b>this</b>@\[[state]] is <code>"closed"</code> or <code>"errored"</code>, return
> -    <b>this</b>@\[[closedPromise]].
> -  <li> If <b>this</b>@\[[state]] is <code>"waiting"</code>, resolve <b>this</b>@\[[readyPromise]] with <b>undefined</b>.
> -  <li> Let <b>this</b>@\[[queue]] be a new empty List.
> -  <li> Call-with-rethrow CloseReadableStream(<b>this</b>).
> -  <li> Let <var>sourceCancelPromise</var> be PromiseInvokeOrNoop(<b>this</b>@\[[underlyingSource]],
> -    <code>"cancel"</code>, (<var>reason</var>)).
> -  <li> Return the result of transforming <var>sourceCancelPromise</var> by a fulfillment handler that returns <b>undefined</b>.
> +  <li> Call-with-rethrow CancelReadableStream(<b>this</b>, <var>reason</var>).

s/Call-with-rethrow/return

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

Received on Monday, 9 February 2015 19:58:23 UTC