Skip to content

Commit

Permalink
More assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Oct 18, 2022
1 parent 204d680 commit da574ae
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -834,6 +834,8 @@ impl VisitMut for TreeShaker {
}

fn visit_mut_module(&mut self, m: &mut Module) {
debug_assert_valid(m);

let _tracing = span!(Level::ERROR, "tree-shaker", pass = self.pass).entered();

if self.bindings.is_empty() {
Expand Down

0 comments on commit da574ae

Please sign in to comment.