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
  • Loading branch information
Conaclos committed Sep 3, 2024
1 parent e79ecce commit 02a48f6
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 02a48f6

Please sign in to comment.