Skip to content

Commit

Permalink
Misc typos, spelling, wording
Browse files Browse the repository at this point in the history
  • Loading branch information
jmdyck committed May 27, 2024
1 parent 845f465 commit 7caee60
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -7252,7 +7252,7 @@ <h1>DisposableResource Records</h1>
[[ResourceValue]]
</td>
<td>
an Object or *undefined*.
an Object or *undefined*
</td>
<td>
The value to be disposed.
Expand Down Expand Up @@ -7311,7 +7311,7 @@ <h1>
1. NOTE: When _V_ is either *null* or *undefined* and _hint_ is ~async-dispose~, we record that the resource was evaluated to ensure we will still perform an Await when resources are later disposed.
1. Let _resource_ be ? CreateDisposableResource(_V_, _hint_).
1. Else,
1. Assert: V is *undefined*.
1. Assert: _V_ is *undefined*.
1. Let _resource_ be ? CreateDisposableResource(*undefined*, _hint_, _method_).
1. Append _resource_ to _disposeCapability_.[[DisposableResourceStack]].
1. Return ~unused~.
Expand Down Expand Up @@ -7402,7 +7402,7 @@ <h1>
<dl class="header">
</dl>
<emu-alg>
1. For each element _resource_ of _disposeCapability_.[[DisposableResourceStack]], in reverse list order, do
1. For each element _resource_ of _disposeCapability_.[[DisposableResourceStack]], in reverse List order, do
1. Let _result_ be Completion(Dispose(_resource_.[[ResourceValue]], _resource_.[[Hint]], _resource_.[[DisposeMethod]])).
1. If _result_ is a throw completion, then
1. If _completion_ is a throw completion, then
Expand Down Expand Up @@ -21626,7 +21626,7 @@ <h1>Static Semantics: Early Errors</h1>
It is a Syntax Error if the BoundNames of |BindingList| contains any duplicate entries.
</li>
<li>
It is a Syntax Error if the goal symbol is |Script| and |UsingDeclaration| is not contained, either directly or indirectly, within a |Block|, |CaseBlock|, |ForStatement|, |ForInOfStatement|, |FunctionBody|, |GeneratorBody|, |AsyncGeneratorBody|, |AsyncFunctionBody|, or |ClassStaticBlockBody|.
It is a Syntax Error if the goal symbol of the syntactic grammar is |Script| and |UsingDeclaration| is not contained, either directly or indirectly, within a |Block|, |CaseBlock|, |ForStatement|, |ForInOfStatement|, |FunctionBody|, |GeneratorBody|, |AsyncGeneratorBody|, |AsyncFunctionBody|, or |ClassStaticBlockBody|.
</li>
</ul>
<emu-grammar>
Expand All @@ -21642,7 +21642,7 @@ <h1>Static Semantics: Early Errors</h1>
It is a Syntax Error if the BoundNames of |BindingList| contains any duplicate entries.
</li>
<li>
It is a Syntax Error if the goal symbol is |Script| and |AwaitUsingDeclaration| is not contained, either directly or indirectly, within a |Block|, |CaseBlock|, |ForStatement|, |ForInOfStatement|, |FunctionBody|, |GeneratorBody|, |AsyncGeneratorBody|, |AsyncFunctionBody|, or |ClassStaticBlockBody|.
It is a Syntax Error if the goal symbol of the syntactic grammar is |Script| and |AwaitUsingDeclaration| is not contained, either directly or indirectly, within a |Block|, |CaseBlock|, |ForStatement|, |ForInOfStatement|, |FunctionBody|, |GeneratorBody|, |AsyncGeneratorBody|, |AsyncFunctionBody|, or |ClassStaticBlockBody|.
</li>
</ul>
<emu-grammar>LexicalBinding : BindingIdentifier Initializer?</emu-grammar>
Expand Down Expand Up @@ -25653,7 +25653,7 @@ <h1>Runtime Semantics: Evaluation</h1>
UnaryExpression : CoverAwaitExpressionAndAwaitUsingDeclarationHead
</emu-grammar>
<emu-alg>
1. Let _expr_ be the |AwaitExpression| that is covered by CoverAwaitExpressionAndAwaitUsingDeclarationHead.
1. Let _expr_ be the |AwaitExpression| that is covered by |CoverAwaitExpressionAndAwaitUsingDeclarationHead|.
1. Return ? Evaluation of _expr_.
</emu-alg>
<emu-grammar>
Expand Down Expand Up @@ -46577,7 +46577,7 @@ <h1>%AsyncIteratorPrototype% [ @@asyncDispose ] ( )</h1>
<emu-alg>
1. Let _O_ be the *this* value.
1. Let _promiseCapability_ be ! NewPromiseCapability(%Promise%).
1. Let _return_ be Completion(GetMethod(_O_, `"return"`)).
1. Let _return_ be Completion(GetMethod(_O_, *"return"*)).
1. IfAbruptRejectPromise(_return_, _promiseCapability_).
1. If _return_ is *undefined*, then
1. Perform ! Call(_promiseCapability_.[[Resolve]], *undefined*, « *undefined* »).
Expand All @@ -46586,7 +46586,7 @@ <h1>%AsyncIteratorPrototype% [ @@asyncDispose ] ( )</h1>
1. IfAbruptRejectPromise(_result_, _promiseCapability_).
1. Let _resultWrapper_ be Completion(PromiseResolve(%Promise%, _result_)).
1. IfAbruptRejectPromise(_resultWrapper_, _promiseCapability_).
1. Let _unwrap_ be a new Abstract Closure that performs the following steps when called:
1. Let _unwrap_ be a new Abstract Closure with no parameters that captures nothing and performs the following steps when called:
1. Return *undefined*.
1. Let _onFulfilled_ be CreateBuiltinFunction(_unwrap_, 1, *""*, « »).
1. Perform PerformPromiseThen(_resultWrapper_, _onFulfilled_, *undefined*, _promiseCapability_).
Expand Down Expand Up @@ -46830,7 +46830,7 @@ <h1>The <i>AsyncDisposable</i> Interface</h1>
`@@asyncDispose`
</td>
<td>
A function that returns a promise.
a function that returns a promise
</td>
<td>
<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 an exception is thrown from this method, 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>
Expand Down Expand Up @@ -47074,7 +47074,7 @@ <h1>AsyncDisposableStack ( )</h1>
<h1>Properties of the AsyncDisposableStack Constructor</h1>
<p>The AsyncDisposableStack constructor:</p>
<ul>
<li>Has a [[Prototype]] internal slot whose value is %Function.prototype%.</li>
<li>has a [[Prototype]] internal slot whose value is %Function.prototype%.</li>
<li>has the following properties:</li>
</ul>

Expand Down

0 comments on commit 7caee60

Please sign in to comment.