Skip to content

Commit 17e0bc0

Browse files
committed
Fix signature for DisposeResources
1 parent e35d446 commit 17e0bc0

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

spec.html

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7203,7 +7203,7 @@ <h1>
72037203
DisposeResources (
72047204
_disposable_: an object with a [[DisposableResourceStack]] internal slot or *undefined*,
72057205
_completion_: a Completion Record,
7206-
): a Completion Record
7206+
): either a normal completion containing an ECMAScript language value or an abrupt completion
72077207
</h1>
72087208
<dl class="header"></dl>
72097209
<emu-alg>
@@ -9661,7 +9661,7 @@ <h1>
96619661
</dl>
96629662
<emu-alg>
96639663
1. If _environment_ is not *undefined*, then
9664-
1. Perform ! _environment_.InitializeBinding(_name_, _value_).
9664+
1. Perform ! _environment_.InitializeBinding(_name_, _value_, ~normal~).
96659665
1. Return ~unused~.
96669666
1. Else,
96679667
1. Let _lhs_ be ? ResolveBinding(_name_).
@@ -10289,7 +10289,7 @@ <h1>
1028910289
_N_: a String,
1029010290
_V_: an ECMAScript language value,
1029110291
_hint_: either ~normal~ or ~sync-dispose~,
10292-
): a normal completion containing ~unused~
10292+
): either a normal completion containing ~unused~ or a throw completion
1029310293
</h1>
1029410294
<dl class="header">
1029510295
<dt>for</dt>
@@ -10326,7 +10326,7 @@ <h1>
1032610326
1. [id="step-setmutablebinding-missing-binding"] If _envRec_ does not have a binding for _N_, then
1032710327
1. If _S_ is *true*, throw a *ReferenceError* exception.
1032810328
1. Perform ! _envRec_.CreateMutableBinding(_N_, *true*).
10329-
1. Perform ! _envRec_.InitializeBinding(_N_, _V_).
10329+
1. Perform ! _envRec_.InitializeBinding(_N_, _V_, ~normal~).
1033010330
1. Return ~unused~.
1033110331
1. If the binding for _N_ in _envRec_ is a strict binding, set _S_ to *true*.
1033210332
1. If the binding for _N_ in _envRec_ has not yet been initialized, throw a *ReferenceError* exception.
@@ -11051,11 +11051,11 @@ <h1>
1105111051
<emu-alg>
1105211052
1. Let _DclRec_ be _envRec_.[[DeclarativeRecord]].
1105311053
1. If ! _DclRec_.HasBinding(_N_) is *true*, then
11054-
1. Return ! _DclRec_.InitializeBinding(_N_, _V_, _hint_).
11054+
1. Return ? _DclRec_.InitializeBinding(_N_, _V_, _hint_).
1105511055
1. Assert: _hint_ is ~normal~.
1105611056
1. Assert: If the binding exists, it must be in the Object Environment Record.
1105711057
1. Let _ObjRec_ be _envRec_.[[ObjectRecord]].
11058-
1. Return ? <emu-meta effects="user-code">_ObjRec_.InitializeBinding</emu-meta>(_N_, _V_).
11058+
1. Return ? <emu-meta effects="user-code">_ObjRec_.InitializeBinding</emu-meta>(_N_, _V_, ~normal~).
1105911059
</emu-alg>
1106011060
</emu-clause>
1106111061

@@ -11318,7 +11318,7 @@ <h1>
1131811318
1. Let _extensible_ be ? IsExtensible(_globalObject_).
1131911319
1. If _hasProperty_ is *false* and _extensible_ is *true*, then
1132011320
1. Perform ? <emu-meta effects="user-code">_ObjRec_.CreateMutableBinding</emu-meta>(_N_, _D_).
11321-
1. Perform ? <emu-meta effects="user-code">_ObjRec_.InitializeBinding</emu-meta>(_N_, *undefined*).
11321+
1. Perform ? <emu-meta effects="user-code">_ObjRec_.InitializeBinding</emu-meta>(_N_, *undefined*, ~normal~).
1132211322
1. Let _varDeclaredNames_ be _envRec_.[[VarNames]].
1132311323
1. If _varDeclaredNames_ does not contain _N_, then
1132411324
1. Append _N_ to _varDeclaredNames_.
@@ -21317,7 +21317,7 @@ <h1>
2131721317
1. Assert: _hint_ is ~normal~.
2131821318
1. Let _lhs_ be ! ResolveBinding(StringValue of |BindingIdentifier|).
2131921319
1. Perform ! InitializeReferencedBinding(_lhs_, *undefined*, ~normal~).
21320-
1. Return ~empty~.
21320+
1. Return ~unused~.
2132121321
</emu-alg>
2132221322
<emu-note>
2132321323
<p>A static semantics rule ensures that this form of |LexicalBinding| never occurs in a `const` or `using` declaration.</p>
@@ -21332,7 +21332,7 @@ <h1>
2133221332
1. Let _rhs_ be ? Evaluation of |Initializer|.
2133321333
1. Let _value_ be ? GetValue(_rhs_).
2133421334
1. Perform ! InitializeReferencedBinding(_lhs_, _value_, _hint_).
21335-
1. Return ~empty~.
21335+
1. Return ~unused~.
2133621336
</emu-alg>
2133721337
<emu-grammar>LexicalBinding : BindingPattern Initializer</emu-grammar>
2133821338
<emu-alg>
@@ -21920,7 +21920,7 @@ <h1>
2192021920
1. For each element _bn_ of _perIterationBindings_, do
2192121921
1. Perform ! _thisIterationEnv_.CreateMutableBinding(_bn_, *false*).
2192221922
1. Let _lastValue_ be ? _lastIterationEnv_.GetBindingValue(_bn_, *true*).
21923-
1. Perform ! _thisIterationEnv_.InitializeBinding(_bn_, _lastValue_).
21923+
1. Perform ! _thisIterationEnv_.InitializeBinding(_bn_, _lastValue_, ~normal~).
2192421924
1. Set the running execution context's LexicalEnvironment to _thisIterationEnv_.
2192521925
1. Return ~unused~.
2192621926
</emu-alg>
@@ -48859,7 +48859,7 @@ <h1>Changes to FunctionDeclarationInstantiation</h1>
4885948859
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|.
4886048860
1. If _initializedBindings_ does not contain _F_ and _F_ is not *"arguments"*, then
4886148861
1. Perform ! _varEnv_.CreateMutableBinding(_F_, *false*).
48862-
1. Perform ! _varEnv_.InitializeBinding(_F_, *undefined*).
48862+
1. Perform ! _varEnv_.InitializeBinding(_F_, *undefined*, ~normal~).
4886348863
1. Append _F_ to _instantiatedVarNames_.
4886448864
1. When the |FunctionDeclaration| _f_ is evaluated, perform the following steps in place of the |FunctionDeclaration| Evaluation algorithm provided in <emu-xref href="#sec-function-definitions-runtime-semantics-evaluation"></emu-xref>:
4886548865
1. Let _fenv_ be the running execution context's VariableEnvironment.
@@ -48929,7 +48929,7 @@ <h1>Changes to EvalDeclarationInstantiation</h1>
4892948929
1. Let _bindingExists_ be ! _varEnv_.HasBinding(_F_).
4893048930
1. If _bindingExists_ is *false*, then
4893148931
1. Perform ! _varEnv_.CreateMutableBinding(_F_, *true*).
48932-
1. Perform ! _varEnv_.InitializeBinding(_F_, *undefined*).
48932+
1. Perform ! _varEnv_.InitializeBinding(_F_, *undefined*, ~normal~).
4893348933
1. Append _F_ to _declaredFunctionOrVarNames_.
4893448934
1. When the |FunctionDeclaration| _f_ is evaluated, perform the following steps in place of the |FunctionDeclaration| Evaluation algorithm provided in <emu-xref href="#sec-function-definitions-runtime-semantics-evaluation"></emu-xref>:
4893548935
1. Let _genv_ be the running execution context's VariableEnvironment.

0 commit comments

Comments
 (0)