- From: Gus Caplan <notifications@github.com>
- Date: Tue, 21 Aug 2018 12:58:56 -0700
- To: whatwg/streams <streams@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 21 August 2018 19:59:18 UTC
devsnek commented on this pull request. > + 1. Let _iterator_ be ? ObjectCreate(`<a idl>ReadableStreamDefaultReaderAsyncIteratorPrototype</a>`, « [[Reader]], + [[Cancel]] »). + 1. Set _iterator_.[[Reader]] to *this*. + 1. Set _iterator_.[[Cancel]] to ! ToBoolean(_cancel_). + 1. Return _iterator_. +</emu-alg> + +<h5 id="default-reader-@@asynciterator" for="ReadableStreamDefaultReader">[@@asyncIterator]()</h5> + +<div class="note"> + The <code>@@asyncIterator</code> method is an alias of {{ReadableStreamDefaultReader/iterator}}. +</div> + +<emu-alg> + 1. Let _iterator_ be ? GetMethod(*this*, "iterator"). + 1. Return ? Call(_iterator_, *this*). agreed, i just wasn't sure how to write that out in bs. thanks for the link. -- 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#discussion_r211739200
Received on Tuesday, 21 August 2018 19:59:18 UTC