Skip to content

Commit 94b1af2

Browse files
committed
Review fixes.
1 parent 7ac7466 commit 94b1af2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

spec.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4279,7 +4279,7 @@ <h1>Private Names</h1>
42794279
[[Brand]]
42804280
</td>
42814281
<td>
4282-
an ECMAScript value
4282+
Object
42834283
</td>
42844284
<td>
42854285
~method~ or ~accessor~
@@ -22492,6 +22492,7 @@ <h1>GlobalDeclarationInstantiation ( _script_, _env_ )</h1>
2249222492
1. NOTE: No abnormal terminations occur after this algorithm step if the global object is an ordinary object. However, if the global object is a Proxy exotic object it may exhibit behaviours that cause abnormal terminations in some of the following steps.
2249322493
1. [id="step-globaldeclarationinstantiation-web-compat-insertion-point"] NOTE: Annex <emu-xref href="#sec-web-compat-globaldeclarationinstantiation"></emu-xref> adds additional steps at this point.
2249422494
1. Let _lexDeclarations_ be the LexicallyScopedDeclarations of _script_.
22495+
1. Let _privateEnv_ be NewDeclarativeEnvironment(*null*).
2249522496
1. For each element _d_ of _lexDeclarations_, do
2249622497
1. NOTE: Lexically declared names are only instantiated here but not initialized.
2249722498
1. For each element _dn_ of the BoundNames of _d_, do
@@ -22501,7 +22502,7 @@ <h1>GlobalDeclarationInstantiation ( _script_, _env_ )</h1>
2250122502
1. Perform ? _env_.CreateMutableBinding(_dn_, *false*).
2250222503
1. For each Parse Node _f_ of _functionsToInitialize_, do
2250322504
1. Let _fn_ be the sole element of the BoundNames of _f_.
22504-
1. Let _fo_ be InstantiateFunctionObject of _f_ with argument _env_.
22505+
1. Let _fo_ be InstantiateFunctionObject of _f_ with arguments _env_ and _privateEnv_.
2250522506
1. Perform ? _env_.CreateGlobalFunctionBinding(_fn_, _fo_, *false*).
2250622507
1. For each String _vn_ of _declaredVarNames_, do
2250722508
1. Perform ? _env_.CreateGlobalVarBinding(_vn_, *false*).

0 commit comments

Comments
 (0)