Skip to content

Commit 2701bff

Browse files
committed
PR feedback
1 parent 41e38ce commit 2701bff

File tree

1 file changed

+28
-29
lines changed

1 file changed

+28
-29
lines changed

spec.html

Lines changed: 28 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -7606,7 +7606,7 @@ <h1>
76067606
1. Let _value_ be _resource_.[[ResourceValue]].
76077607
1. Let _kind_ be _resource_.[[Kind]].
76087608
1. Let _method_ be _resource_.[[DisposeMethod]].
7609-
1. If _kind_ is ~sync-dispose~ and _needsAwait_ is *true* and _hasAwaited_ is *false*, then
7609+
1. If _kind_ is ~sync-dispose~, _needsAwait_ is *true*, and _hasAwaited_ is *false*, then
76107610
1. Perform ! Await(*undefined*).
76117611
1. Set _needsAwait_ to *false*.
76127612
1. If _method_ is not *undefined*, then
@@ -10576,7 +10576,7 @@ <h1>Static Semantics: PropName ( ): a String or ~empty~</h1>
1057610576
</emu-clause>
1057710577

1057810578
<emu-clause id="sec-static-semantics-containsusing" type="sdo">
10579-
<h1>Static Semantics: ContainsUsing ( ): Boolean</h1>
10579+
<h1>Static Semantics: ContainsUsing ( ): a Boolean</h1>
1058010580
<dl class="header">
1058110581
</dl>
1058210582
<emu-grammar>StatementList : StatementList StatementListItem</emu-grammar>
@@ -10870,7 +10870,7 @@ <h1>
1087010870
InitializeBinding (
1087110871
_N_: a String,
1087210872
_V_: an ECMAScript language value,
10873-
): either a normal completion containing ~unused~ or a throw completion
10873+
): a normal completion containing ~unused~
1087410874
</h1>
1087510875
<dl class="header">
1087610876
<dt>for</dt>
@@ -11528,7 +11528,7 @@ <h1>
1152811528
<emu-alg>
1152911529
1. Let _DclRec_ be _envRec_.[[DeclarativeRecord]].
1153011530
1. If ! _DclRec_.HasBinding(_N_) is *true*, then
11531-
1. Return ? _DclRec_.InitializeBinding(_N_, _V_).
11531+
1. Return ! _DclRec_.InitializeBinding(_N_, _V_).
1153211532
1. Assert: If the binding exists, it must be in the Object Environment Record.
1153311533
1. Let _ObjRec_ be _envRec_.[[ObjectRecord]].
1153411534
1. Return ? <emu-meta effects="user-code">_ObjRec_.InitializeBinding(_N_, _V_)</emu-meta>.
@@ -22082,7 +22082,7 @@ <h1>Runtime Semantics: Evaluation</h1>
2208222082
</emu-alg>
2208322083
</emu-clause>
2208422084

22085-
<emu-clause id="sec-let-const-using-and-await-using-declarations-runtime-semantics-bindingevaluation" type="sdo">
22085+
<emu-clause id="sec-bindingevaluation" type="sdo">
2208622086
<h1>
2208722087
Runtime Semantics: BindingEvaluation (
2208822088
_kind_: ~normal~, ~sync-dispose~, or ~async-dispose~,
@@ -29280,14 +29280,14 @@ <h1>InitializeEnvironment ( ): either a normal completion containing ~unused~ or
2928029280
1. If _in_.[[ImportName]] is ~namespace-object~, then
2928129281
1. Let _namespace_ be GetModuleNamespace(_importedModule_).
2928229282
1. Perform ! _env_.CreateImmutableBinding(_in_.[[LocalName]], *true*).
29283-
1. Perform ! _env_.InitializeBinding(_in_.[[LocalName]], _namespace_).
29283+
1. Perform ! _env_.InitializeBinding(_in_.[[LocalName]], _namespace_).
2928429284
1. Else,
2928529285
1. Let _resolution_ be _importedModule_.ResolveExport(_in_.[[ImportName]]).
2928629286
1. If _resolution_ is either *null* or ~ambiguous~, throw a *SyntaxError* exception.
2928729287
1. If _resolution_.[[BindingName]] is ~namespace~, then
2928829288
1. Let _namespace_ be GetModuleNamespace(_resolution_.[[Module]]).
2928929289
1. Perform ! _env_.CreateImmutableBinding(_in_.[[LocalName]], *true*).
29290-
1. Perform ! _env_.InitializeBinding(_in_.[[LocalName]], _namespace_).
29290+
1. Perform ! _env_.InitializeBinding(_in_.[[LocalName]], _namespace_).
2929129291
1. Else,
2929229292
1. Perform CreateImportBinding(_env_, _in_.[[LocalName]], _resolution_.[[Module]], _resolution_.[[BindingName]]).
2929329293
1. Let _moduleContext_ be a new ECMAScript code execution context.
@@ -49494,8 +49494,8 @@ <h1>Iterator.prototype.toArray ( )</h1>
4949449494
</emu-alg>
4949549495
</emu-clause>
4949649496

49497-
<emu-clause id="sec-%iteratorprototype%-%symbol.dispose%">
49498-
<h1>%IteratorPrototype% [ %Symbol.dispose% ] ( )</h1>
49497+
<emu-clause id="sec-Iterator.prototype-%symbol.dispose%">
49498+
<h1>Iterator.prototype [ %Symbol.dispose% ] ( )</h1>
4949949499
<p>This function performs the following steps when called:</p>
4950049500
<emu-alg>
4950149501
1. Let _O_ be the *this* value.
@@ -49780,9 +49780,9 @@ <h1>Resource Management</h1>
4978049780
<h1>Common Resource Management Interfaces</h1>
4978149781

4978249782
<emu-clause id="sec-disposable-interface">
49783-
<h1>The <em>Disposable</em> Interface</h1>
49784-
<p>The <em>Disposable</em> interface includes the property described in <emu-xref href="#table-disposable-interface-required-properties"></emu-xref>:</p>
49785-
<emu-table id="table-disposable-interface-required-properties" caption="<em>Disposable</em> Interface Required Properties">
49783+
<h1>The Disposable Interface</h1>
49784+
<p>The <dfn variants="Disposable object">Disposable</dfn> interface includes the property described in <emu-xref href="#table-disposable-interface-required-properties"></emu-xref>:</p>
49785+
<emu-table id="table-disposable-interface-required-properties" caption="Disposable Interface Required Properties">
4978649786
<table>
4978749787
<tr>
4978849788
<th>
@@ -49803,19 +49803,19 @@ <h1>The <em>Disposable</em> Interface</h1>
4980349803
a function object
4980449804
</td>
4980549805
<td>
49806-
<p>Invoking this method notifies the <em>Disposable</em> object that the caller does not intend to continue to use this object. This method should perform any necessary logic to perform explicit clean-up of the resource including, but not limited to, file system handles, streams, host objects, etc. When an exception is thrown from this method, it typically means that the resource could not be explicitly freed.</p>
49806+
<p>Invoking this method notifies the Disposable object that the caller does not intend to continue to use this object. This method should perform any necessary logic to perform explicit clean-up of the resource including, but not limited to, file system handles, streams, host objects, etc. When an exception is thrown from this method, it typically means that the resource could not be explicitly freed.</p>
4980749807
<p>If called more than once on the same object, the function should not throw an exception. However, this requirement is not enforced.</p>
49808-
<p>When using a <em>Disposable</em> object, in most circumstances 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>
49808+
<p>When using a Disposable object, in most circumstances 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>
4980949809
</td>
4981049810
</tr>
4981149811
</table>
4981249812
</emu-table>
4981349813
</emu-clause>
4981449814

4981549815
<emu-clause id="sec-asyncdisposable-interface">
49816-
<h1>The <em>AsyncDisposable</em> Interface</h1>
49817-
<p>The <em>AsyncDisposable</em> interface includes the property described in <emu-xref href="#table-asyncdisposable-interface-required-properties"></emu-xref>:</p>
49818-
<emu-table id="table-asyncdisposable-interface-required-properties" caption="<em>AsyncDisposable</em> Interface Required Properties">
49816+
<h1>The AsyncDisposable Interface</h1>
49817+
<p>The <dfn variants="AsyncDisposable object">AsyncDisposable</dfn> interface includes the property described in <emu-xref href="#table-asyncdisposable-interface-required-properties"></emu-xref>:</p>
49818+
<emu-table id="table-asyncdisposable-interface-required-properties" caption="AsyncDisposable Interface Required Properties">
4981949819
<table>
4982049820
<tr>
4982149821
<th>
@@ -49833,12 +49833,12 @@ <h1>The <em>AsyncDisposable</em> Interface</h1>
4983349833
`%Symbol.asyncDispose%`
4983449834
</td>
4983549835
<td>
49836-
A function object that returns a promise
49836+
a function object that returns a promise
4983749837
</td>
4983849838
<td>
49839-
<p>Invoking this method notifies the <em>AsyncDisposable</em> object that the caller does not intend to continue to use this object. This method should perform any necessary logic to perform explicit clean-up of the resource including, but not limited to, file system handles, streams, host objects, etc. When the promise returned by this method is rejected, it typically means that the resource could not be explicitly freed. An <em>AsyncDisposable</em> object is not considered "disposed" until the resulting Promise has been fulfilled.</p>
49839+
<p>Invoking this method notifies the AsyncDisposable object that the caller does not intend to continue to use this object. This method should perform any necessary logic to perform explicit clean-up of the resource including, but not limited to, file system handles, streams, host objects, etc. When the promise returned by this method is rejected, it typically means that the resource could not be explicitly freed. An AsyncDisposable object is not considered "disposed" until the resulting Promise has been fulfilled.</p>
4984049840
<p>If called more than once on the same object, the function should not throw an exception or return a rejected promise. However, this requirement is not enforced.</p>
49841-
<p>When using an <em>AsyncDisposable</em> object, in most circumstances it is good practice to create the instance with a `await using` declaration, as the resource will be automatically disposed when the |Block| or |Module| immediately containing the declaration has been evaluated.</p>
49841+
<p>When using an AsyncDisposable object, in most circumstances it is good practice to create the instance with a `await using` declaration, as the resource will be automatically disposed when the |Block| or |Module| immediately containing the declaration has been evaluated.</p>
4984249842
</td>
4984349843
</tr>
4984449844
</table>
@@ -53445,6 +53445,13 @@ <h1>Expressions</h1>
5344553445
<emu-prodref name="LeftHandSideExpression"></emu-prodref>
5344653446
<emu-prodref name="UpdateExpression"></emu-prodref>
5344753447
<emu-prodref name="UnaryExpression"></emu-prodref>
53448+
<p>
53449+
When processing an instance of the production<br>
53450+
<emu-prodref name="UnaryExpression" a="awaitusingcover"></emu-prodref><br>
53451+
the interpretation of |CoverAwaitExpressionAndAwaitUsingDeclarationHead| is refined using the following grammar:
53452+
</p>
53453+
<emu-prodref name="AwaitExpression"></emu-prodref>
53454+
<p>&nbsp;</p>
5344853455
<emu-prodref name="ExponentiationExpression"></emu-prodref>
5344953456
<emu-prodref name="MultiplicativeExpression"></emu-prodref>
5345053457
<emu-prodref name="MultiplicativeOperator"></emu-prodref>
@@ -53498,7 +53505,7 @@ <h1>Statements</h1>
5349853505
<emu-prodref name="UsingDeclaration"></emu-prodref>
5349953506
<emu-prodref name="AwaitUsingDeclaration"></emu-prodref>
5350053507
<p>
53501-
In certain circumstances when processing an instance of the production<br>
53508+
When processing an instance of the production<br>
5350253509
<emu-prodref name="AwaitUsingDeclaration"></emu-prodref><br>
5350353510
the interpretation of |CoverAwaitExpressionAndAwaitUsingDeclarationHead| is refined using the following grammar:
5350453511
</p>
@@ -53597,14 +53604,6 @@ <h1>Functions and Classes</h1>
5359753604
<emu-prodref name="AsyncFunctionExpression"></emu-prodref>
5359853605
<emu-prodref name="AsyncMethod"></emu-prodref>
5359953606
<emu-prodref name="AsyncFunctionBody"></emu-prodref>
53600-
<emu-prodref name="CoverAwaitExpressionAndAwaitUsingDeclarationHead"></emu-prodref>
53601-
<p>
53602-
When processing an instance of the production<br>
53603-
<emu-prodref name="UnaryExpression" a="awaitusingcover"></emu-prodref><br>
53604-
the interpretation of |CoverAwaitExpressionAndAwaitUsingDeclarationHead| is refined using the following grammar:
53605-
</p>
53606-
<emu-prodref name="AwaitExpression"></emu-prodref>
53607-
<p>&nbsp;</p>
5360853607
<emu-prodref name="ClassDeclaration"></emu-prodref>
5360953608
<emu-prodref name="ClassExpression"></emu-prodref>
5361053609
<emu-prodref name="ClassTail"></emu-prodref>

0 commit comments

Comments
 (0)