mirror of
https://github.com/swc-project/swc.git
synced 2024-12-01 01:13:56 +03:00
fix(es/minifier): Don't create keys with negative number (#4698)
This commit is contained in:
parent
8d1a586206
commit
809a626a99
@ -71,8 +71,10 @@ impl Pure<'_> {
|
||||
}
|
||||
}
|
||||
Expr::Lit(Lit::Num(n)) => {
|
||||
if n.value.is_sign_positive() {
|
||||
*p = PropName::Num(n.clone());
|
||||
}
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user