Skip to content

Commit

Permalink
Revert StaticBlock
Browse files Browse the repository at this point in the history
  • Loading branch information
CPunisher committed Aug 1, 2024
1 parent a4a72ba commit 708d41b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1436,7 +1436,7 @@ impl<'parser> JavascriptParser<'parser> {
ClassMember::StaticBlock(block) => {
let was_top_level = this.top_level_scope;
this.top_level_scope = TopLevelScope::False;
this.walk_statement(Statement::Block(&block.body));
this.walk_block_statement(Statement::Block(&block.body));
this.top_level_scope = was_top_level;
}
ClassMember::Empty(_) => {}
Expand Down

0 comments on commit 708d41b

Please sign in to comment.