mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-22 12:35:14 +00:00
LibJS: Wrap static_init_block_scope
call in its own scope
This commit is contained in:
parent
396f35c41d
commit
6aea459e00
Notes:
github-actions[bot]
2025-04-05 17:21:36 +00:00
Author: https://github.com/devgianlu Commit: https://github.com/LadybirdBrowser/ladybird/commit/6aea459e000 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4226
1 changed files with 4 additions and 2 deletions
|
@ -1535,8 +1535,10 @@ NonnullRefPtr<ClassExpression const> Parser::parse_class_expression(bool expect_
|
|||
TemporaryChange class_static_init_block_rollback(m_state.in_class_static_init_block, true);
|
||||
TemporaryChange super_property_access_rollback(m_state.allow_super_property_lookup, true);
|
||||
|
||||
ScopePusher static_init_scope = ScopePusher::static_init_block_scope(*this, *static_init_block);
|
||||
parse_statement_list(static_init_block);
|
||||
{
|
||||
ScopePusher static_init_scope = ScopePusher::static_init_block_scope(*this, *static_init_block);
|
||||
parse_statement_list(static_init_block);
|
||||
}
|
||||
|
||||
consume(TokenType::CurlyClose);
|
||||
elements.append(create_ast_node<StaticInitializer>({ m_source_code, static_start.position(), position() }, move(static_init_block)));
|
||||
|
|
Loading…
Add table
Reference in a new issue