Skip to content

Commit

Permalink
Add an assertion for privateEnv
Browse files Browse the repository at this point in the history
  • Loading branch information
kimjg1119 committed Nov 20, 2024
1 parent 5881c1f commit 0780c51
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -20374,6 +20374,7 @@ <h1>Runtime Semantics: Evaluation</h1>
1. Let _rVal_ be ? GetValue(_rRef_).
1. If _rVal_ is not an Object, throw a *TypeError* exception.
1. Let _privateEnv_ be the running execution context's PrivateEnvironment.
1. Assert: _privateEnv_ is not *null*.
1. Let _privateName_ be ResolvePrivateIdentifier(_privateEnv_, _privateIdentifier_).
1. If PrivateElementFind(_rVal_, _privateName_) is not ~empty~, return *true*.
1. Return *false*.
Expand Down

0 comments on commit 0780c51

Please sign in to comment.