From 7caee60193758d8ea7ff8532fa9469765a51bd30 Mon Sep 17 00:00:00 2001 From: Michael Dyck Date: Mon, 27 May 2024 11:49:34 -0400 Subject: [PATCH] Misc typos, spelling, wording --- spec.html | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/spec.html b/spec.html index 436424baa1..d7cd11df89 100644 --- a/spec.html +++ b/spec.html @@ -7252,7 +7252,7 @@

DisposableResource Records

[[ResourceValue]] - an Object or *undefined*. + an Object or *undefined* The value to be disposed. @@ -7311,7 +7311,7 @@

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~. @@ -7402,7 +7402,7 @@

- 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 @@ -21626,7 +21626,7 @@

Static Semantics: Early Errors

It is a Syntax Error if the BoundNames of |BindingList| contains any duplicate entries.
  • - 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|.
  • @@ -21642,7 +21642,7 @@

    Static Semantics: Early Errors

    It is a Syntax Error if the BoundNames of |BindingList| contains any duplicate entries.
  • - 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|.
  • LexicalBinding : BindingIdentifier Initializer? @@ -25653,7 +25653,7 @@

    Runtime Semantics: Evaluation

    UnaryExpression : CoverAwaitExpressionAndAwaitUsingDeclarationHead
    - 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_. @@ -46577,7 +46577,7 @@

    %AsyncIteratorPrototype% [ @@asyncDispose ] ( )

    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* »). @@ -46586,7 +46586,7 @@

    %AsyncIteratorPrototype% [ @@asyncDispose ] ( )

    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_). @@ -46830,7 +46830,7 @@

    The AsyncDisposable Interface

    `@@asyncDispose` - A function that returns a promise. + a function that returns a promise

    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 an exception is thrown from this method, 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.

    @@ -47074,7 +47074,7 @@

    AsyncDisposableStack ( )

    Properties of the AsyncDisposableStack Constructor

    The AsyncDisposableStack constructor:

      -
    • Has a [[Prototype]] internal slot whose value is %Function.prototype%.
    • +
    • has a [[Prototype]] internal slot whose value is %Function.prototype%.
    • has the following properties: