From 17e0bc02992e3311268750d69e3b95a770112a3e Mon Sep 17 00:00:00 2001 From: Ron Buckton Date: Mon, 23 Jan 2023 18:30:13 -0500 Subject: [PATCH] Fix signature for DisposeResources --- spec.html | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/spec.html b/spec.html index d0e26d112a..cf71254526 100644 --- a/spec.html +++ b/spec.html @@ -7203,7 +7203,7 @@

DisposeResources ( _disposable_: an object with a [[DisposableResourceStack]] internal slot or *undefined*, _completion_: a Completion Record, - ): a Completion Record + ): either a normal completion containing an ECMAScript language value or an abrupt completion

@@ -9661,7 +9661,7 @@

1. If _environment_ is not *undefined*, then - 1. Perform ! _environment_.InitializeBinding(_name_, _value_). + 1. Perform ! _environment_.InitializeBinding(_name_, _value_, ~normal~). 1. Return ~unused~. 1. Else, 1. Let _lhs_ be ? ResolveBinding(_name_). @@ -10289,7 +10289,7 @@

_N_: a String, _V_: an ECMAScript language value, _hint_: either ~normal~ or ~sync-dispose~, - ): a normal completion containing ~unused~ + ): either a normal completion containing ~unused~ or a throw completion

for
@@ -10326,7 +10326,7 @@

1. [id="step-setmutablebinding-missing-binding"] If _envRec_ does not have a binding for _N_, then 1. If _S_ is *true*, throw a *ReferenceError* exception. 1. Perform ! _envRec_.CreateMutableBinding(_N_, *true*). - 1. Perform ! _envRec_.InitializeBinding(_N_, _V_). + 1. Perform ! _envRec_.InitializeBinding(_N_, _V_, ~normal~). 1. Return ~unused~. 1. If the binding for _N_ in _envRec_ is a strict binding, set _S_ to *true*. 1. If the binding for _N_ in _envRec_ has not yet been initialized, throw a *ReferenceError* exception. @@ -11051,11 +11051,11 @@

1. Let _DclRec_ be _envRec_.[[DeclarativeRecord]]. 1. If ! _DclRec_.HasBinding(_N_) is *true*, then - 1. Return ! _DclRec_.InitializeBinding(_N_, _V_, _hint_). + 1. Return ? _DclRec_.InitializeBinding(_N_, _V_, _hint_). 1. Assert: _hint_ is ~normal~. 1. Assert: If the binding exists, it must be in the Object Environment Record. 1. Let _ObjRec_ be _envRec_.[[ObjectRecord]]. - 1. Return ? _ObjRec_.InitializeBinding(_N_, _V_). + 1. Return ? _ObjRec_.InitializeBinding(_N_, _V_, ~normal~). @@ -11318,7 +11318,7 @@

1. Let _extensible_ be ? IsExtensible(_globalObject_). 1. If _hasProperty_ is *false* and _extensible_ is *true*, then 1. Perform ? _ObjRec_.CreateMutableBinding(_N_, _D_). - 1. Perform ? _ObjRec_.InitializeBinding(_N_, *undefined*). + 1. Perform ? _ObjRec_.InitializeBinding(_N_, *undefined*, ~normal~). 1. Let _varDeclaredNames_ be _envRec_.[[VarNames]]. 1. If _varDeclaredNames_ does not contain _N_, then 1. Append _N_ to _varDeclaredNames_. @@ -21317,7 +21317,7 @@

1. Assert: _hint_ is ~normal~. 1. Let _lhs_ be ! ResolveBinding(StringValue of |BindingIdentifier|). 1. Perform ! InitializeReferencedBinding(_lhs_, *undefined*, ~normal~). - 1. Return ~empty~. + 1. Return ~unused~.

A static semantics rule ensures that this form of |LexicalBinding| never occurs in a `const` or `using` declaration.

@@ -21332,7 +21332,7 @@

1. Let _rhs_ be ? Evaluation of |Initializer|. 1. Let _value_ be ? GetValue(_rhs_). 1. Perform ! InitializeReferencedBinding(_lhs_, _value_, _hint_). - 1. Return ~empty~. + 1. Return ~unused~. LexicalBinding : BindingPattern Initializer @@ -21920,7 +21920,7 @@

1. For each element _bn_ of _perIterationBindings_, do 1. Perform ! _thisIterationEnv_.CreateMutableBinding(_bn_, *false*). 1. Let _lastValue_ be ? _lastIterationEnv_.GetBindingValue(_bn_, *true*). - 1. Perform ! _thisIterationEnv_.InitializeBinding(_bn_, _lastValue_). + 1. Perform ! _thisIterationEnv_.InitializeBinding(_bn_, _lastValue_, ~normal~). 1. Set the running execution context's LexicalEnvironment to _thisIterationEnv_. 1. Return ~unused~. @@ -48859,7 +48859,7 @@

Changes to FunctionDeclarationInstantiation

1. NOTE: A var binding for _F_ is only instantiated here if it is neither a VarDeclaredName, the name of a formal parameter, or another |FunctionDeclaration|. 1. If _initializedBindings_ does not contain _F_ and _F_ is not *"arguments"*, then 1. Perform ! _varEnv_.CreateMutableBinding(_F_, *false*). - 1. Perform ! _varEnv_.InitializeBinding(_F_, *undefined*). + 1. Perform ! _varEnv_.InitializeBinding(_F_, *undefined*, ~normal~). 1. Append _F_ to _instantiatedVarNames_. 1. When the |FunctionDeclaration| _f_ is evaluated, perform the following steps in place of the |FunctionDeclaration| Evaluation algorithm provided in : 1. Let _fenv_ be the running execution context's VariableEnvironment. @@ -48929,7 +48929,7 @@

Changes to EvalDeclarationInstantiation

1. Let _bindingExists_ be ! _varEnv_.HasBinding(_F_). 1. If _bindingExists_ is *false*, then 1. Perform ! _varEnv_.CreateMutableBinding(_F_, *true*). - 1. Perform ! _varEnv_.InitializeBinding(_F_, *undefined*). + 1. Perform ! _varEnv_.InitializeBinding(_F_, *undefined*, ~normal~). 1. Append _F_ to _declaredFunctionOrVarNames_. 1. When the |FunctionDeclaration| _f_ is evaluated, perform the following steps in place of the |FunctionDeclaration| Evaluation algorithm provided in : 1. Let _genv_ be the running execution context's VariableEnvironment.