Skip to content

Commit 4e0aff4

Browse files
committed
Allow "get the next iteration result" to reject
Fixes #803.
1 parent f693318 commit 4e0aff4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.bs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4304,8 +4304,8 @@ Prose accompanying an [=interface=] with an [=asynchronously iterable declaratio
43044304
<dfn id="dfn-get-the-next-iteration-result">get the next iteration result</dfn> algorithm.
43054305
This algorithm receives the instance of the [=interface=] that is being iterated, as well as the
43064306
async iterator itself (which can be useful for storing state).
4307-
It must return a {{Promise}} that either resolves with undefined to signal the end of the
4308-
iterationor a tuple with two elements:
4307+
It must return a {{Promise}} that either rejects, resolves with undefined to signal the end of the
4308+
iteration, or resolves with a tuple containing two elements:
43094309

43104310
1. a value of the first type given in the declaration;
43114311
1. a value of the second type given in the declaration.

0 commit comments

Comments
 (0)