From 375ebe316d8ff1a421c1cafc95d64e3377f7737b Mon Sep 17 00:00:00 2001 From: "Alex Lam S.L" Date: Wed, 2 Sep 2020 18:41:10 +0100 Subject: enhance `join_vars` (#4089) --- test/input/reduce/label.js | 10 ++-------- test/input/reduce/label.reduced.js | 15 ++++++--------- 2 files changed, 8 insertions(+), 17 deletions(-) (limited to 'test/input/reduce') diff --git a/test/input/reduce/label.js b/test/input/reduce/label.js index aee57a40..5b0f0593 100644 --- a/test/input/reduce/label.js +++ b/test/input/reduce/label.js @@ -1,9 +1,3 @@ -var o = this; - -for (var k in o) L17060: { - a++; +UNUSED: { + console.log(0 - .1 - .1 - .1); } - -var a; - -console.log(k); diff --git a/test/input/reduce/label.reduced.js b/test/input/reduce/label.reduced.js index a1e79507..ba4b56c9 100644 --- a/test/input/reduce/label.reduced.js +++ b/test/input/reduce/label.reduced.js @@ -1,15 +1,12 @@ // (beautified) -var o = this; - -for (var k in o) {} - -var a; - -console.log(k); -// output: a +console.log(0 - 1 - .1 - .1); +// output: -1.2000000000000002 // -// minify: k +// minify: -1.2 // // options: { +// "compress": { +// "unsafe_math": true +// }, // "mangle": false // } \ No newline at end of file -- cgit v1.2.3