Re: [whatwg/streams] add @@asyncIterator to ReadableStreamDefaultReader (#950)

MattiasBuelens requested changes on this pull request.



> +  <tr>
+    <td>\[[Reader]]
+    <td class="non-normative">A {{ReadableStreamDefaultReader}} instance.
+  </tr>
+  <tr>
+    <td>\[[Cancel]]
+    <td class="non-normative">Boolean value indicating if the reader will be cancelled when the stream returns.
+  </tr>
+</table>
+
+<h4 id="default-reader-asynciterator-prototype-next" method for="ReadableStreamDefaultReaderAsyncIteratorPrototype">
+  next()
+</h4>
+
+<emu-alg>
+  1. If ! IsReadableStreamDefaultReaderAsyncIteratorPrototype(*this*) is *false*, throw a *TypeError* exception.

`next()` and `return()` should reject the returned promise instead of throwing an exception. This also means turning any exception thrown from `GetMethod` and `Call` into rejections.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/pull/950#pullrequestreview-148272581

Received on Tuesday, 21 August 2018 22:29:00 UTC