From df47632eccdc505810073d7bfced21bbf8c2dd98 Mon Sep 17 00:00:00 2001 From: "Alex Lam S.L" Date: Mon, 24 May 2021 04:24:02 +0100 Subject: fix corner case in `ie8` (#4959) fixes #4958 --- test/compress/ie8.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'test/compress') diff --git a/test/compress/ie8.js b/test/compress/ie8.js index 3221c92a..018cd2d8 100644 --- a/test/compress/ie8.js +++ b/test/compress/ie8.js @@ -2997,3 +2997,23 @@ issue_4928_2: { } expect_stdout: "PASS" } + +issue_4958: { + options = { + collapse_vars: true, + ie8: true, + } + input: { + console.log(function arguments(a) { + a = 21; + return arguments[0] + 21; + }("FAIL")); + } + expect: { + console.log(function arguments(a) { + a = 21; + return arguments[0] + 21; + }("FAIL")); + } + expect_stdout: "42" +} -- cgit v1.2.3