# Pastebin QIlVxE8r diff --git a/index.bs b/index.bs index ae48a25..b0cb847 100644 --- a/index.bs +++ b/index.bs @@ -1283,6 +1283,8 @@

Class definition

cancel(reason) read() releaseLock() + + [@@asyncIterator]() } @@ -1402,6 +1404,50 @@
re 1. Perform ! ReadableStreamReaderGenericRelease(*this*). +
[@@asyncIterator]()
+ + + 1. If ! IsReadableStreamDefaultReader(*this*) is *false*, throw a *TypeError* exception. + 1. If *this*.[[ownerReadableStream]] is *undefined*, throw a *TypeError* exception. + 1. Let _iterator_ be ? ObjectCreate(*ReadableStreamDefaultReaderAsyncIteratorPrototype*, « [[Reader]], [[Read]] »). + 1. Set _iterator_.[[Reader]] to *this*. + 1. Return _iterator_. + + +

+ ReadableStreamDefaultReaderAsyncIteratorPrototype +

+ +

Internal slots

+ +Instances of {{ReadableStreamDefaultReaderAsyncIteratorPrototype}} are created with the internal slots described in the +following table: + + + + + + + + + + +
Internal SlotDescription (non-normative)
\[[Reader]] + A {{ReadableStreamDefaultReader}} instance. +
+ +
+ ReadableStreamDefaultReaderAsyncIteratorPrototype.next() +
+ + + 1. Let _O_ be *this* value. + 1. If Type(_O_) is not Object, throw a *TypeError* exception. + 1. Let _reader_ be O.[[Reader]]. + 1. Let _read_ be ? GetMethod(_reader_, "read"). + 1. Return ? Call(_read_, _reader_); + +

Class ReadableStreamBYOBReader

The {{ReadableStreamBYOBReader}} class represents a BYOB reader designed to be vended by a {{ReadableStream}}