@@ -4354,13 +4354,13 @@ Prose accompanying an [=interface=] with an [=asynchronously iterable declaratio
4354
4354
<dfn id="dfn-get-the-next-iteration-result" export>get the next iteration result</dfn> algorithm.
4355
4355
This algorithm receives the instance of the [=interface=] that is being iterated, as well as the
4356
4356
async iterator itself (which can be useful for storing state).
4357
- It must return a {{Promise}} that either rejects, resolves with undefined to signal the end of the
4358
- iteration, or resolves with one of the following:
4357
+ It must return a {{Promise}} that either rejects, resolves with a special <dfn export> end of
4358
+ iteration</dfn> value to signal the end of the iteration , or resolves with one of the following:
4359
4359
4360
4360
: for [=value asynchronously iterable declarations=]:
4361
4361
:: a value of the type given in the declaration;
4362
4362
: for [=pair asynchronously iterable declarations=]:
4363
- :: a tuple containing a value of the first type given in the declaration, and a value of the second type given in the declaration.
4363
+ :: a [=pair=] containing a value of the first type given in the declaration, and a value of the second type given in the declaration.
4364
4364
4365
4365
The prose may also define an <dfn export>asynchronous iterator return</dfn> algorithm. This
4366
4366
algorithm receives the instance of the [=interface=] that is being iterated, the async iterator
@@ -4434,7 +4434,7 @@ or have any [=inherited interfaces=] that have [=interface members=] with these
4434
4434
Note: |iterator|'s [=SessionManager async iterator/current state=] might no longer be
4435
4435
present in the open sessions.
4436
4436
1. If |key| is null, then:
4437
- 1. Resolve |promise| with undefined .
4437
+ 1. Resolve |promise| with [=end of iteration=] .
4438
4438
1. Otherwise:
4439
4439
1. Let |session| be the <code class="idl">Session</code> object corresponding to |key|.
4440
4440
1. Resolve |promise| with (|username|, |session|).
@@ -12531,7 +12531,7 @@ The \[[Prototype]] [=internal slot=] of an [=asynchronous iterator prototype obj
12531
12531
1. Let |fulfillSteps| be the following steps, given |next|:
12532
12532
1. Set |object|'s [=default asynchronous iterator object/ongoing promise=] to
12533
12533
null.
12534
- 1. If |next| is <emu-val>undefined</emu-val> , then:
12534
+ 1. If |next| is [=end of iteration=] , then:
12535
12535
1. Set |object|'s [=default asynchronous iterator object/is finished=] to true.
12536
12536
1. Return [=!=] [$CreateIterResultObject$](<emu-val>undefined</emu-val>,
12537
12537
<emu-val>true</emu-val>).
0 commit comments