Skip to content

Commit 2e461c9

Browse files
committed
Fixing assertion on MakePrivateReference
1 parent c3d193d commit 2e461c9

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

spec.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3845,7 +3845,7 @@ <h1>MakePrivateReference ( _baseValue_, _privateIdentifier_ )</h1>
38453845
1. Let _env_ be the running execution context's PrivateEnvironment.
38463846
1. Let _privateNameBinding_ be ? ResolveBinding(_privateIdentifier_, _env_).
38473847
1. Let _privateName_ be ? GetValue(_privateNameBinding_).
3848-
1. Assert: _privateName_ is a Private Name.
3848+
1. Assert: _privateIdentifier_ is a Private Name.
38493849
1. Return the Reference Record { [[Base]]: _baseValue_, [[ReferencedName]]: _privateName_, [[Strict]]: *true*, [[ThisValue]]: ~empty~ }.
38503850
</emu-alg>
38513851
</emu-clause>
@@ -20419,7 +20419,6 @@ <h1>Runtime Semantics: InstantiateArrowFunctionExpression</h1>
2041920419
1. Let _scope_ be the LexicalEnvironment of the running execution context.
2042020420
1. Let _privateScope_ be the running execution context's PrivateEnvironment.
2042120421
1. Let _sourceText_ be the source text matched by |ArrowFunction|.
20422-
1. Let _privateScope_ be the PrivateEnvironment of the running execution context.
2042320422
1. [id="step-arrowfunction-evaluation-functioncreate"] Let _closure_ be OrdinaryFunctionCreate(%Function.prototype%, _sourceText_, |ArrowParameters|, |ConciseBody|, ~lexical-this~, _scope_, _privateScope_).
2042420423
1. Perform SetFunctionName(_closure_, _name_).
2042520424
1. Return _closure_.

0 commit comments

Comments
 (0)