mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 08:36:15 +00:00
LibJS: Consume semicolon at the end of a statement
A bunch of code was relying on this not happenind, in particular the parsing of "for" statements. Reorganized things so they work again.
This commit is contained in:
@@ -70,6 +70,7 @@ private:
|
||||
bool match_unary_prefixed_expression() const;
|
||||
bool match_secondary_expression() const;
|
||||
bool match_statement() const;
|
||||
bool match_variable_declaration() const;
|
||||
bool match(TokenType type) const;
|
||||
bool done() const;
|
||||
void expected(const char* what);
|
||||
|
||||
Reference in New Issue
Block a user