From 8c670cae93c1fda0e893ef27cccfb515b836c30d Mon Sep 17 00:00:00 2001 From: alexlamsl Date: Tue, 22 Sep 2020 07:48:55 +0800 Subject: enhance `unused` --- test/compress/functions.js | 2 +- test/compress/reduce_vars.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/compress/functions.js b/test/compress/functions.js index 8bfb2eaf..3027d59e 100644 --- a/test/compress/functions.js +++ b/test/compress/functions.js @@ -2676,7 +2676,7 @@ cross_references_3: { }; return Math.square(n) + Math.cube(n); }; - }(Math)(2)); + }()(2)); console.log(Math.square(3), Math.cube(3)); } expect_stdout: [ diff --git a/test/compress/reduce_vars.js b/test/compress/reduce_vars.js index 153ac5d4..a79dd068 100644 --- a/test/compress/reduce_vars.js +++ b/test/compress/reduce_vars.js @@ -2415,7 +2415,7 @@ redefine_farg_2: { console.log(typeof [], "number",function(a, b) { a = b; return typeof a; - }([])); + }()); } expect_stdout: "object number undefined" } -- cgit v1.2.3