fix(es/minifier): Don't create keys with negative number (#4698)

This commit is contained in:
Donny/강동윤 2022-05-18 19:47:00 +09:00 committed by GitHub
parent 8d1a586206
commit 809a626a99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -71,8 +71,10 @@ impl Pure<'_> {
}
}
Expr::Lit(Lit::Num(n)) => {
if n.value.is_sign_positive() {
*p = PropName::Num(n.clone());
}
}
_ => {}
}
}