Skip to content

Add IfAbruptCloseAsyncIterator #25

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 11, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 25 additions & 3 deletions spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,30 @@ <h1>Introduction</h1>

<emu-clause id="sec-control-abstraction-objects">
<h1>Control Abstraction Objects</h1>

<emu-clause id="sec-iteration">
<h1>Iteration</h1>

<emu-clause id="sec-iterator-abstract-operations">
<h1>Iterator Abstract Operations</h1>

<emu-clause id="sec-ifabruptcloseasynciterator" aoid="IfAbruptCloseAsyncIterator">
<h1>IfAbruptCloseAsyncIterator ( _value_, _iteratorRecord_ )</h1>
<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>
<emu-alg>
1. IfAbruptCloseAsyncIterator(_value_, _iteratorRecord_).
</emu-alg>
<p>means the same thing as:</p>
<emu-alg>
1. If _value_ is an abrupt completion, then
1. Perform ? AsyncIteratorClose(_iteratorRecord_, _value_).
1. Return _value_.
1. Else if _value_ is a Completion Record, set _value_ to _value_.[[Value]].
</emu-alg>
</emu-clause>
</emu-clause>
</emu-clause>

<emu-clause id="sec-async-function-objects">
<h1>AsyncFunction Objects</h1>
<emu-clause id="sec-async-functions-abstract-operations">
Expand Down Expand Up @@ -63,10 +87,8 @@ <h1>
</emu-alg>
</emu-clause>
</emu-clause>
</emu-clause>

</emu-clause>

</emu-clause>

<emu-clause id="sec-indexed-collections">
<h1>Indexed Collections</h1>
Expand Down