From df506439b16c550f7e8da30b392f17b0ca4c2e4a Mon Sep 17 00:00:00 2001 From: "Alex Lam S.L" Date: Tue, 4 Feb 2020 04:57:32 +0000 Subject: fix corner case in `sequences` (#3704) fixes #3703 --- lib/output.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/output.js') diff --git a/lib/output.js b/lib/output.js index a63671c6..86c0931e 100644 --- a/lib/output.js +++ b/lib/output.js @@ -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; } -- cgit v1.2.3