Skip to content
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

Add CreateAsyncContextSnapshot AO #97

Merged
merged 2 commits into from
Jul 10, 2024
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
20 changes: 20 additions & 0 deletions spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -968,6 +968,26 @@ <h1>
1. Return _asyncContextMapping_.
</emu-alg>
</emu-clause>

<emu-clause id="sec-createasynccontextsnapshot" type="abstract operation">
<h1>
CreateAsyncContextSnapshot (
_snapshotMapping_: a List of Async Context Mapping Records
): either a normal completion containing an AsyncContext.Snapshot object or a throw completion
</h1>
<dl class="header">
<dt>description</dt>
<dd>It is used to obtain an AsyncContext.Snapshot object representing the given List of Async Context Mapping Records.</dd>
</dl>
<emu-alg>
1. Let _asyncSnapshot_ be ? OrdinaryCreateFromConstructor(%AsyncContext.Snapshot%, *"%AsyncContext.Snapshot.prototype%"*, « [[AsyncSnapshotMapping]] »).
1. Set _asyncSnapshot_.[[AsyncSnapshotMapping]] to _snapshotMapping_.
1. Return _asyncSnapshot_.
</emu-alg>
<emu-note>
<p>This abstract operation is meant for hosts to use, and it is not used in this specification.</p>
</emu-note>
</emu-clause>
</emu-clause>

<emu-clause id="sec-constructor-properties-of-the-asynccontext-object">
Expand Down
Loading