Skip to content

Commit

Permalink
Editorial: Add an assertion for privateEnv (#3485)
Browse files Browse the repository at this point in the history
  • Loading branch information
kimjg1119 authored and ljharb committed Nov 21, 2024
1 parent ddd7360 commit 727afe3
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 @@ -20404,6 +20404,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 727afe3

Please sign in to comment.