Skip to content

Commit

Permalink
Run formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
rbuckton committed Jan 23, 2023
1 parent b188e41 commit e35d446
Showing 1 changed file with 22 additions and 27 deletions.
49 changes: 22 additions & 27 deletions spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -7056,13 +7056,13 @@ <h1>
<emu-clause id="sec-operations-on-disposable-objects">
<h1>Operations on Disposable Objects</h1>
<p>See Common Resource Management Interfaces (<emu-xref href="#sec-common-resource-management-interfaces"></emu-xref>).</p>

<emu-clause id="sec-disposableresource-records">
<h1>DisposableResource Records</h1>
<p>A <dfn variants="DisposableResource Records">DisposableResource Record</dfn> is a Record value used to encapsulate a disposable object along with the method used to dispose the object. DisposableResource Records are produced by the CreateDisposableResource abstract operation.</p>
<p>DisposableResource Records have the fields listed in <emu-xref href="#table-disposableresource-record-fields"></emu-xref>:</p>
<emu-table id="table-disposableresource-record-fields" caption="DisposableResource Record Fields">
<table>
<tbody>
<tr>
<th>
Field Name
Expand Down Expand Up @@ -7107,7 +7107,6 @@ <h1>DisposableResource Records</h1>
A function object that will be called with [[ResourceValue]] as its *this* value when the resource disposed.
</td>
</tr>
</tbody>
</table>
</emu-table>
<emu-note>
Expand All @@ -7118,10 +7117,10 @@ <h1>DisposableResource Records</h1>
<emu-clause id="sec-adddisposableresource-disposable-v-hint-disposemethod" type="abstract operation">
<h1>
AddDisposableResource (
_disposable_ : an object with a [[DisposableResourceStack]] internal slot,
_V_ : an ECMAScript language value,
_hint_ : ~sync-dispose~,
optional _method_ : a function object,
_disposable_: an object with a [[DisposableResourceStack]] internal slot,
_V_: an ECMAScript language value,
_hint_: ~sync-dispose~,
optional _method_: a function object,
)
</h1>
<dl class="header">
Expand All @@ -7148,9 +7147,9 @@ <h1>
<emu-clause id="sec-createdisposableresource" type="abstract operation">
<h1>
CreateDisposableResource (
_V_ : an Object or *undefined*,
_hint_ : ~sync-dispose~,
optional _method_ : a function object,
_V_: an Object or *undefined*,
_hint_: ~sync-dispose~,
optional _method_: a function object,
)
</h1>
<dl class="header"></dl>
Expand All @@ -7171,8 +7170,8 @@ <h1>
<emu-clause id="sec-getdisposemethod" type="abstract operation">
<h1>
GetDisposeMethod (
_V_ : an Object,
_hint_ : ~sync-dispose~,
_V_: an Object,
_hint_: ~sync-dispose~,
)
</h1>
<dl class="header"></dl>
Expand All @@ -7186,9 +7185,9 @@ <h1>
<emu-clause id="sec-dispose" type="abstract operation">
<h1>
Dispose (
_V_ : an Object or *undefined*,
_hint_ : ~sync-dispose~,
_method_ : a function object,
_V_: an Object or *undefined*,
_hint_: ~sync-dispose~,
_method_: a function object,
)
</h1>
<dl class="header"></dl>
Expand All @@ -7202,8 +7201,8 @@ <h1>
<emu-clause id="sec-disposeresources-disposable-completion-errors" type="abstract operation">
<h1>
DisposeResources (
_disposable_ : an object with a [[DisposableResourceStack]] internal slot or *undefined*,
_completion_ : a Completion Record,
_disposable_: an object with a [[DisposableResourceStack]] internal slot or *undefined*,
_completion_: a Completion Record,
): a Completion Record
</h1>
<dl class="header"></dl>
Expand Down Expand Up @@ -21304,7 +21303,7 @@ <h1>Runtime Semantics: Evaluation</h1>
<h1>
Runtime Semantics: BindingEvaluation (
_hint_: either ~normal~ or ~sync-dispose~,
) : either a normal completion containing ~unused~ or an abrupt completion
): either a normal completion containing ~unused~ or an abrupt completion
</h1>
<dl class="header">
</dl>
Expand Down Expand Up @@ -44064,7 +44063,7 @@ <h1>%IteratorPrototype% [ @@dispose ] ( )</h1>
1. Let _O_ be the *this* value.
1. Let _return_ be ? GetMethod(_O_, `"return"`).
1. If _return_ is not *undefined*, then
1. Perform ? Call(_return_, _O_, &laquo; &raquo;).
1. Perform ? Call(_return_, _O_, « »).
1. Return NormalCompletion(~empty~).
</emu-alg>
<p>The value of the *"name"* property of this function is *"[Symbol.dispose]"*.</p>
Expand Down Expand Up @@ -44265,9 +44264,8 @@ <h1>Common Resource Management Interfaces</h1>
<emu-clause id="sec-disposable-interface">
<h1>The <em>Disposable</em> Interface</h1>
<p>The <em>Disposable</em> interface includes the property described in <emu-xref href="#table-disposable-interface-required-properties"></emu-xref>:</p>
<emu-table id="table-disposable-interface-required-properties" caption="&lt;em&gt;Disposable&lt;/em&gt; Interface Required Properties">
<emu-table id="table-disposable-interface-required-properties" caption="<em>Disposable</em> Interface Required Properties">
<table>
<tbody>
<tr>
<th>
Property
Expand All @@ -44292,7 +44290,6 @@ <h1>The <em>Disposable</em> Interface</h1>
<p>When using a <em>Disposable</em> object, it is good practice to create the instance with a `using` declaration, as the resource will be automatically disposed when the |Block| or |Module| immediately containing the declaration has been evaluated.</p>
</td>
</tr>
</tbody>
</table>
</emu-table>
</emu-clause>
Expand Down Expand Up @@ -44324,7 +44321,7 @@ <h1>DisposableStack ( )</h1>
<p>When the `DisposableStack` function is called, the following steps are taken:</p>
<emu-alg>
1. If NewTarget is *undefined*, throw a *TypeError* exception.
1. Let _disposableStack_ be ? OrdinaryCreateFromConstructor(NewTarget, *"%DisposableStack.prototype%"*, &laquo; [[DisposableState]], [[DisposableResourceStack]] &raquo;).
1. Let _disposableStack_ be ? OrdinaryCreateFromConstructor(NewTarget, *"%DisposableStack.prototype%"*, « [[DisposableState]], [[DisposableResourceStack]] »).
1. Set _disposableStack_.[[DisposableState]] to ~pending~.
1. Set _disposableStack_.[[DisposableResourceStack]] to a new empty List.
1. Return _disposableStack_.
Expand Down Expand Up @@ -44384,7 +44381,7 @@ <h1>DisposableStack.prototype.use ( _value_ )</h1>
1. If Type(_value_) is not Object, throw a *TypeError* exception.
1. Let _method_ be GetDisposeMethod(_value_, ~sync-dispose~).
1. If _method_ is *undefined*, then
1. Throw a *TypeError* exception.
1. Throw a *TypeError* exception.
1. Else,
1. Perform ? AddDisposableResource(_disposableStack_, _value_, ~sync-dispose~, _method_).
1. Return _value_.
Expand Down Expand Up @@ -44413,7 +44410,7 @@ <h1>DisposableStack Adopt Callback Functions</h1>
<emu-alg>
1. Let _F_ be the active function object.
1. Assert: IsCallable(_F_.[[OnDisposeCallback]]) is *true*.
1. Return ? Call(_F_.[[OnDisposeCallback]], *undefined*, &laquo; _F_.[[Argument]] &raquo;).
1. Return ? Call(_F_.[[OnDisposeCallback]], *undefined*, « _F_.[[Argument]] »).
</emu-alg>
</emu-clause>
</emu-clause>
Expand All @@ -44438,7 +44435,7 @@ <h1>DisposableStack.prototype.move ( )</h1>
1. Let _disposableStack_ be the *this* value.
1. Perform ? RequireInternalSlot(_disposableStack_, [[DisposableState]]).
1. If _disposableStack_.[[DisposableState]] is ~disposed~, throw a *ReferenceError* exception.
1. Let _newDisposableStack_ be ? OrdinaryCreateFromConstructor(%DisposableStack%, *"%DisposableStack.prototype%"*, &laquo; [[DisposableState]], [[DisposableResourceStack]] &raquo;).
1. Let _newDisposableStack_ be ? OrdinaryCreateFromConstructor(%DisposableStack%, *"%DisposableStack.prototype%"*, « [[DisposableState]], [[DisposableResourceStack]] »).
1. Set _newDisposableStack_.[[DisposableState]] to ~pending~.
1. Set _newDisposableStack_.[[DisposableResourceStack]] to _disposableStack_.[[DisposableResourceStack]].
1. Set _disposableStack_.[[DisposableResourceStack]] to a new empty List.
Expand All @@ -44464,7 +44461,6 @@ <h1>Properties of DisposableStack Instances</h1>
<p>DisposableStack instances are ordinary objects that inherit properties from the DisposableStack prototype object (the intrinsic %DisposableStack.prototype%). DisposableStack instances are initially created with internal slots described in <emu-xref href="#table-internal-slots-of-disposablestack-instances"></emu-xref>.</p>
<emu-table id="table-internal-slots-of-disposablestack-instances" caption="Internal Slots of DisposableStack Instances">
<table>
<tbody>
<tr>
<th>
Internal Slot
Expand All @@ -44489,7 +44485,6 @@ <h1>Properties of DisposableStack Instances</h1>
A List of DisposableResource Records.
</td>
</tr>
</tbody>
</table>
</emu-table>
</emu-clause>
Expand Down

0 comments on commit e35d446

Please sign in to comment.