- From: Mattias Buelens <notifications@github.com>
- Date: Tue, 18 Sep 2018 01:38:17 -0700
- To: whatwg/streams <streams@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 18 September 2018 08:38:38 UTC
MattiasBuelens commented on this pull request. > + +<emu-alg> + 1. If ! IsReadableStreamAsyncIterator(*this*) is *false*, return <a>a promise rejected with</a> *TypeError* exception. + 1. Let _reader_ be *this*.[[asyncIteratorReader]]. + 1. If _reader_.[[ownerReadableStream]] is *undefined*, return <a>a promise rejected with</a> a *TypeError* exception. + 1. Return ! ReadableStreamDefaultReaderRead(_reader_, *true*). +</emu-alg> + +<h4 id="rs-asynciterator-prototype-return" method +for="ReadableStreamAsyncIteratorPrototype">return( <var>value</var> )</h4> + +<emu-alg> + 1. If ! IsReadableStreamAsyncIterator(*this*) is *false*, return <a>a promise rejected with</a> *TypeError* exception. + 1. Let _reader_ be *this*.[[asyncIteratorReader]]. + 1. If *this*.[[preventCancel]] is *false*, then: + 1. If _reader_.[[ownerReadableStream]] is *undefined*, return <a>a promise rejected with</a> a *TypeError* This should also be changed in the reference implementation. -- 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/954#discussion_r218343338
Received on Tuesday, 18 September 2018 08:38:38 UTC