Skip to content

Commit

Permalink
Deploying to gh-pages from @ e2c297c 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
rbuckton committed Apr 10, 2024
1 parent 6cce6ef commit 45d7d9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pr/194/index.html
Expand Up @@ -3528,7 +3528,7 @@ <h1><span class="secnum">2.1.7</span> Dispose ( <var>V</var>, <var>hint</var>, <
<emu-clause id="sec-disposeresources" type="abstract operation" aoid="DisposeResources">
<h1><span class="secnum">2.1.8</span> DisposeResources ( <var>disposeCapability</var>, <var>completion</var> )</h1>
<p>The abstract operation DisposeResources takes arguments <var>disposeCapability</var> (a <emu-xref href="#sec-disposecapability-records" id="_ref_48"><a href="#sec-disposecapability-records">DisposeCapability Record</a></emu-xref>) and <var>completion</var> (a <emu-xref href="#sec-completion-record-specification-type"><a href="https://tc39.es/ecma262/#sec-completion-record-specification-type">Completion Record</a></emu-xref>) and returns a <emu-xref href="#sec-completion-record-specification-type"><a href="https://tc39.es/ecma262/#sec-completion-record-specification-type">Completion Record</a></emu-xref>. It performs the following steps when called:</p>
<emu-alg><ol><li>For each <var>resource</var> of <var>disposeCapability</var>.[[DisposableResourceStack]], in reverse list order, do<ol><li>Let <var>result</var> be <emu-xref aoid="Dispose" id="_ref_49"><a href="#sec-dispose">Dispose</a></emu-xref>(<var>resource</var>.[[ResourceValue]], <var>resource</var>.[[Hint]], <var>resource</var>.[[DisposeMethod]]).</li><li>If <var>result</var>.[[Type]] is <emu-const>throw</emu-const>, then<ol><li>If <var>completion</var>.[[Type]] is <emu-const>throw</emu-const>, then<ol><li>Set <var>result</var> to <var>result</var>.[[Value]].</li><li>Let <var>suppressed</var> be <var>completion</var>.[[Value]].</li><li>Let <var>error</var> be a newly created <emu-val>SuppressedError</emu-val> object.</li><li>Perform <emu-xref aoid="CreateNonEnumerableDataPropertyOrThrow"><a href="https://tc39.es/ecma262/#sec-createnonenumerabledatapropertyorthrow">CreateNonEnumerableDataPropertyOrThrow</a></emu-xref>(<var>error</var>, <emu-val>"error"</emu-val>, <var>result</var>).</li><li>Perform <emu-xref aoid="CreateNonEnumerableDataPropertyOrThrow"><a href="https://tc39.es/ecma262/#sec-createnonenumerabledatapropertyorthrow">CreateNonEnumerableDataPropertyOrThrow</a></emu-xref>(<var>error</var>, <emu-val>"suppressed"</emu-val>, <var>suppressed</var>).</li><li>Set <var>completion</var> to <emu-xref aoid="ThrowCompletion"><a href="https://tc39.es/ecma262/#sec-throwcompletion">ThrowCompletion</a></emu-xref>(<var>error</var>).</li></ol></li><li>Else,<ol><li>Set <var>completion</var> to <var>result</var>.</li></ol></li></ol></li></ol></li><li>NOTE: After <var>disposeCapability</var> has been disposed, it will never be used again. The contents of <var>disposeCapability</var>.[[DisposableResourceStack]] can be discarded at this point.</li><li>Set <var>disposeCapability</var>.[[DisposableResourceStack]] to a new empty <emu-xref href="#sec-list-and-record-specification-type"><a href="https://tc39.es/ecma262/#sec-list-and-record-specification-type">List</a></emu-xref>.</li><li>Return <var>completion</var>.</li></ol></emu-alg>
<emu-alg><ol><li>For each <var>resource</var> of <var>disposeCapability</var>.[[DisposableResourceStack]], in reverse list order, do<ol><li>Let <var>result</var> be <emu-xref aoid="Dispose" id="_ref_49"><a href="#sec-dispose">Dispose</a></emu-xref>(<var>resource</var>.[[ResourceValue]], <var>resource</var>.[[Hint]], <var>resource</var>.[[DisposeMethod]]).</li><li>If <var>result</var>.[[Type]] is <emu-const>throw</emu-const>, then<ol><li>If <var>completion</var>.[[Type]] is <emu-const>throw</emu-const>, then<ol><li>Set <var>result</var> to <var>result</var>.[[Value]].</li><li>Let <var>suppressed</var> be <var>completion</var>.[[Value]].</li><li>Let <var>error</var> be a newly created <emu-val>SuppressedError</emu-val> object.</li><li>Perform <emu-xref aoid="CreateNonEnumerableDataPropertyOrThrow"><a href="https://tc39.es/ecma262/#sec-createnonenumerabledatapropertyorthrow">CreateNonEnumerableDataPropertyOrThrow</a></emu-xref>(<var>error</var>, <emu-val>"error"</emu-val>, <var>result</var>).</li><li>Perform <emu-xref aoid="CreateNonEnumerableDataPropertyOrThrow"><a href="https://tc39.es/ecma262/#sec-createnonenumerabledatapropertyorthrow">CreateNonEnumerableDataPropertyOrThrow</a></emu-xref>(<var>error</var>, <emu-val>"suppressed"</emu-val>, <var>suppressed</var>).</li><li>Set <var>completion</var> to <emu-xref aoid="ThrowCompletion"><a href="https://tc39.es/ecma262/#sec-throwcompletion">ThrowCompletion</a></emu-xref>(<var>error</var>).</li></ol></li><li>Else,<ol><li>Set <var>completion</var> to <var>result</var>.</li></ol></li></ol></li></ol></li><li>NOTE: After <var>disposeCapability</var> has been disposed, it will never be used again. The contents of <var>disposeCapability</var>.[[DisposableResourceStack]] can be discarded in implementations, such as by garbage collection, at this point.</li><li>Set <var>disposeCapability</var>.[[DisposableResourceStack]] to a new empty <emu-xref href="#sec-list-and-record-specification-type"><a href="https://tc39.es/ecma262/#sec-list-and-record-specification-type">List</a></emu-xref>.</li><li>Return <var>completion</var>.</li></ol></emu-alg>
</emu-clause>
</emu-clause>
</ins>
Expand Down

0 comments on commit 45d7d9a

Please sign in to comment.