Skip to content

Commit

Permalink
fix: don't panic in debug mode when encountring complex variable decl…
Browse files Browse the repository at this point in the history
…aration (#3769)
  • Loading branch information
Conaclos authored Sep 3, 2024
1 parent 49e2103 commit 0b83351
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions crates/biome_js_parser/src/syntax/stmt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1228,8 +1228,6 @@ fn eat_variable_declaration(
declarator_context: context,
remaining_declarator_range: None,
};

debug_assert!(p.state().name_map.is_empty());
let list = variable_declarator_list.parse_list(p);

p.state_mut().name_map.clear();
Expand Down

0 comments on commit 0b83351

Please sign in to comment.