Skip to content

Commit

Permalink
fix(es/transforms/compat): short curcuit template literal visitor
Browse files Browse the repository at this point in the history
  • Loading branch information
kwonoj committed Dec 20, 2021
1 parent 3d95ff4 commit 223052a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ impl VisitMut for TemplateLiteral {
noop_visit_mut_type!();

fn visit_mut_expr(&mut self, e: &mut Expr) {
e.visit_mut_children_with(self);

match e {
Expr::Tpl(Tpl {
span,
Expand Down Expand Up @@ -407,7 +405,9 @@ impl VisitMut for TemplateLiteral {
})
}

_ => {}
_ => {
e.visit_mut_children_with(self);
}
}
}

Expand Down

1 comment on commit 223052a

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark

Benchmark suite Current: 223052a Previous: 938e544 Ratio
full_es2015 186811686 ns/iter (± 10373181) 185318925 ns/iter (± 7735705) 1.01
full_es2016 153018284 ns/iter (± 8561736) 153547524 ns/iter (± 4556233) 1.00
full_es2017 159262250 ns/iter (± 19948850) 156375055 ns/iter (± 5176226) 1.02
full_es2018 148522152 ns/iter (± 24370379) 156701512 ns/iter (± 5288728) 0.95
full_es2019 147129200 ns/iter (± 16388463) 154416510 ns/iter (± 5775884) 0.95
full_es2020 143819222 ns/iter (± 18641977) 154747712 ns/iter (± 7480302) 0.93
full_es3 201102313 ns/iter (± 33994230) 211322929 ns/iter (± 13027151) 0.95
full_es5 180522694 ns/iter (± 12240443) 197535745 ns/iter (± 8783389) 0.91
parser 637642 ns/iter (± 24882) 684288 ns/iter (± 14533) 0.93

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.