Skip to content

Commit b1c5aa0

Browse files
committed
Allow "get the next iteration result" to reject
Fixes #803.
1 parent 1ca64bd commit b1c5aa0

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
@@ -4301,8 +4301,8 @@ Prose accompanying an [=interface=] with an [=asynchronously iterable declaratio
43014301
<dfn id="dfn-get-the-next-iteration-result">get the next iteration result</dfn> algorithm.
43024302
This algorithm receives the instance of the [=interface=] that is being iterated, as well as the
43034303
async iterator itself (which can be useful for storing state).
4304-
It must return a {{Promise}} that either resolves with undefined to signal the end of the
4305-
iterationor a tuple with two elements:
4304+
It must return a {{Promise}} that either rejects, resolves with undefined to signal the end of the
4305+
iteration, or resolves with a tuple containing two elements:
43064306

43074307
1. a value of the first type given in the declaration;
43084308
1. a value of the second type given in the declaration.

0 commit comments

Comments
 (0)