Skip to content

Commit

Permalink
Fix debug assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Jun 12, 2024
1 parent 4d79903 commit e60b312
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/swc_ecma_minifier/src/compress/optimize/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2990,11 +2990,11 @@ impl VisitMut for Optimizer<'_> {
return false;
}

debug_assert_valid(&*var);

true
});

debug_assert_valid(&*vars);

let uses_eval = self.data.scopes.get(&self.ctx.scope).unwrap().has_eval_call;

if !uses_eval && !self.ctx.dont_use_prepend_nor_append {
Expand Down

0 comments on commit e60b312

Please sign in to comment.