fix corner case in sequences (#3704)

fixes #3703
This commit is contained in:
Alex Lam S.L
2020-02-04 04:57:32 +00:00
committed by GitHub
parent 36b2d35bf3
commit df506439b1
3 changed files with 73 additions and 39 deletions

View File

@@ -783,6 +783,8 @@ function OutputStream(options) {
var p = output.parent();
if (p instanceof AST_PropAccess && p.expression === this) {
var value = this.value;
// https://github.com/mishoo/UglifyJS2/issues/115
// https://github.com/mishoo/UglifyJS2/pull/1009
if (value < 0 || /^0/.test(make_num(value))) {
return true;
}