Skip to content

Commit cf5938e

Browse files
kimjg1119ljharb
authored andcommitted
Editorial: Add an assertion for privateEnv (#3485)
1 parent ddd7360 commit cf5938e

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

esmeta-ignore.json

-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
"Record[SourceTextModuleRecord].ExecuteModule",
2020
"Record[SourceTextModuleRecord].InitializeEnvironment",
2121
"Record[SourceTextModuleRecord].ResolveExport",
22-
"RelationalExpression[7,0].Evaluation",
2322
"SuperCall[0,0].Evaluation",
2423
"TypedArrayGetElement",
2524
"TypedArrayLength",

spec.html

+1
Original file line numberDiff line numberDiff line change
@@ -20404,6 +20404,7 @@ <h1>Runtime Semantics: Evaluation</h1>
2040420404
1. Let _rVal_ be ? GetValue(_rRef_).
2040520405
1. If _rVal_ is not an Object, throw a *TypeError* exception.
2040620406
1. Let _privateEnv_ be the running execution context's PrivateEnvironment.
20407+
1. Assert: _privateEnv_ is not *null*.
2040720408
1. Let _privateName_ be ResolvePrivateIdentifier(_privateEnv_, _privateIdentifier_).
2040820409
1. If PrivateElementFind(_rVal_, _privateName_) is not ~empty~, return *true*.
2040920410
1. Return *false*.

0 commit comments

Comments
 (0)