1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 18:07:34 +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

@ -178,6 +178,7 @@ private:
bool match_identifier() const;
bool match_identifier_name() const;
bool match_property_key() const;
bool is_private_identifier_valid() const;
bool match(TokenType type) const;
bool done() const;
void expected(const char* what);
@ -242,6 +243,8 @@ private:
ScopePusher* current_scope_pusher { nullptr };
HashMap<StringView, Optional<Position>> labels_in_scope;
HashTable<StringView>* referenced_private_names { nullptr };
bool strict_mode { false };
bool allow_super_property_lookup { false };
bool allow_super_constructor_call { false };