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