From 3c609e2f4a925b3c47bfa2b9185a353295f353b3 Mon Sep 17 00:00:00 2001 From: "Alex Lam S.L" Date: Sat, 19 Sep 2020 18:45:52 +0100 Subject: enhance `unused` (#4129) --- test/compress/reduce_vars.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/compress/reduce_vars.js') diff --git a/test/compress/reduce_vars.js b/test/compress/reduce_vars.js index c911efe0..153ac5d4 100644 --- a/test/compress/reduce_vars.js +++ b/test/compress/reduce_vars.js @@ -120,7 +120,7 @@ modified: { expect: { function f0() { var b = 2; - b++; + +b; console.log(2); console.log(4); } @@ -5590,7 +5590,7 @@ lvalues_def_1: { } expect: { var b = 1; - var a = b++, b = NaN; + var a = +b, b = NaN; console.log(a, b); } expect_stdout: "1 NaN" -- cgit v1.2.3