Skip to content

Commit 93847aa

Browse files
authored
Add IfAbruptCloseAsyncIterator (#25)
* Add IfAbruptCloseAsyncIterator
1 parent 233339e commit 93847aa

File tree

1 file changed

+25
-3
lines changed

1 file changed

+25
-3
lines changed

spec.html

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,30 @@ <h1>Introduction</h1>
2121

2222
<emu-clause id="sec-control-abstraction-objects">
2323
<h1>Control Abstraction Objects</h1>
24+
25+
<emu-clause id="sec-iteration">
26+
<h1>Iteration</h1>
27+
28+
<emu-clause id="sec-iterator-abstract-operations">
29+
<h1>Iterator Abstract Operations</h1>
30+
31+
<emu-clause id="sec-ifabruptcloseasynciterator" aoid="IfAbruptCloseAsyncIterator">
32+
<h1>IfAbruptCloseAsyncIterator ( _value_, _iteratorRecord_ )</h1>
33+
<p><dfn>IfAbruptCloseAsyncIterator</dfn> is a shorthand for a sequence of algorithm steps that use an Iterator Record. An algorithm step of the form:</p>
34+
<emu-alg>
35+
1. IfAbruptCloseAsyncIterator(_value_, _iteratorRecord_).
36+
</emu-alg>
37+
<p>means the same thing as:</p>
38+
<emu-alg>
39+
1. If _value_ is an abrupt completion, then
40+
1. Perform ? AsyncIteratorClose(_iteratorRecord_, _value_).
41+
1. Return _value_.
42+
1. Else if _value_ is a Completion Record, set _value_ to _value_.[[Value]].
43+
</emu-alg>
44+
</emu-clause>
45+
</emu-clause>
46+
</emu-clause>
47+
2448
<emu-clause id="sec-async-function-objects">
2549
<h1>AsyncFunction Objects</h1>
2650
<emu-clause id="sec-async-functions-abstract-operations">
@@ -63,10 +87,8 @@ <h1>
6387
</emu-alg>
6488
</emu-clause>
6589
</emu-clause>
66-
</emu-clause>
67-
6890
</emu-clause>
69-
91+
</emu-clause>
7092

7193
<emu-clause id="sec-indexed-collections">
7294
<h1>Indexed Collections</h1>

0 commit comments

Comments
 (0)