aboutsummaryrefslogtreecommitdiff
path: root/lib/output.js
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2020-02-04 04:57:32 +0000
committerGitHub <noreply@github.com>2020-02-04 04:57:32 +0000
commitdf506439b16c550f7e8da30b392f17b0ca4c2e4a (patch)
tree041da3d90bdf5773063fba2bfa5ca79a7eee79ab /lib/output.js
parent36b2d35bf35618042aeba57fc7ef37a39dadf295 (diff)
downloadtracifyjs-df506439b16c550f7e8da30b392f17b0ca4c2e4a.tar.gz
tracifyjs-df506439b16c550f7e8da30b392f17b0ca4c2e4a.zip
fix corner case in `sequences` (#3704)
fixes #3703
Diffstat (limited to 'lib/output.js')
-rw-r--r--lib/output.js2
1 files changed, 2 insertions, 0 deletions
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;
}