Skip to content

Commit df8383f

Browse files
committed
close an async iterator |reason|
1 parent 5a0bb8e commit df8383f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

index.bs

+4-4
Original file line numberDiff line numberDiff line change
@@ -8251,7 +8251,7 @@ an [=async iterator=]. The [=async iterator=] can be asynchronously iterated ove
82518251

82528252
1. Let |nextResult| be
82538253
<a abstract-op>IteratorNext</a>(|iterator|'s [=JS async iterator/underlying record=]).
8254-
1. If |nextResult| is an abrupt completion, return [=a promise rejected with=]
8254+
1. If |nextResult| is an [=abrupt completion=], return [=a promise rejected with=]
82558255
|nextResult|.\[[Value]].
82568256
1. Let |nextPromise| be [=a promise resolved with=] |nextResult|.\[[Value]].
82578257
1. Return the result of [=reacting=] to |nextPromise| with the following fulfillment
@@ -8273,17 +8273,17 @@ an [=async iterator=]. The [=async iterator=] can be asynchronously iterated ove
82738273

82748274
To <dfn id="async-iterator-close" export lt="close an async iterator">close</dfn> an
82758275
<code><a lt="async iterator">async iterator&lt;<var ignore>T</var>&gt;</a></code> |iterator|,
8276-
with a reason |reason|:
8276+
with an ECMAScript value |reason|:
82778277

82788278
1. Let |iteratorRecord| be |iterator|'s [=JS async iterator/underlying record=].
82798279
1. Let |iteratorObj| be |iteratorRecord|.\[[Iterator]].
82808280
1. Let |returnMethod| be <a abstract-op>GetMethod</a>(|iteratorObj|, "<code>return</code>").
8281-
1. If |returnMethod| is an abrupt completion, return [=a promise rejected with=]
8281+
1. If |returnMethod| is an [=abrupt completion=], return [=a promise rejected with=]
82828282
|returnMethod|.\[[Value]].
82838283
1. If |returnMethod| is <emu-val>undefined</emu-val>, return [=a promise resolved with=]
82848284
{{undefined}}.
82858285
1. Let |returnResult| be <a abstract-op>Call</a>(|returnMethod|.\[[Value]], |iteratorObj|, « |reason| »).
8286-
1. If |returnResult| is an abrupt completion, return [=a promise rejected with=]
8286+
1. If |returnResult| is an [=abrupt completion=], return [=a promise rejected with=]
82878287
|returnResult|.\[[Value]].
82888288
1. Let |returnPromise| be [=a promise resolved with=] |returnResult|.\[[Value]].
82898289
1. Return the result of [=reacting=] to |returnPromise| with the following fulfillment steps,

0 commit comments

Comments
 (0)