1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 12:37:44 +00:00

LibJS: Add parsing and evaluation of private fields and methods

This commit is contained in:
davidot 2021-10-12 22:45:52 +02:00 committed by Linus Groh
parent c7a6572789
commit 16cc82460f
9 changed files with 368 additions and 69 deletions

View file

@ -34,8 +34,9 @@ PrivateName PrivateEnvironment::resolve_private_identifier(FlyString const& iden
void PrivateEnvironment::add_private_name(Badge<ClassExpression>, FlyString description)
{
// FIXME: there is a exception for getter setter pairs.
VERIFY(find_private_name(description).is_end());
if (!find_private_name(description).is_end())
return;
m_private_names.empend(m_unique_id, move(description));
}