Skip to content

Commit c3fa587

Browse files
committed
feedback
1 parent c46ec43 commit c3fa587

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

crates/swc_ecma_minifier/src/compress/optimize/sequences.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1524,9 +1524,7 @@ impl Optimizer<'_> {
15241524

15251525
// Respect top_retain
15261526
if let Some(a_id) = a.id() {
1527-
if a_id.0 == "arguments"
1528-
|| (self.ctx.in_top_level() && self.options.top_retain.contains(&a_id.0))
1529-
{
1527+
if a_id.0 == "arguments" || self.may_remove_ident(&Ident::from(a_id)) {
15301528
return Ok(false);
15311529
}
15321530
}

0 commit comments

Comments
 (0)