From 0a1c9b34cea8bf740c70d5457ef9e3bd37778607 Mon Sep 17 00:00:00 2001 From: "Alex Lam S.L" Date: Sat, 21 Mar 2020 00:55:24 +0800 Subject: fix corner case in `evaluate` & `ie8` (#3751) fixes #3750 --- test/compress/ie8.js | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'test/compress') diff --git a/test/compress/ie8.js b/test/compress/ie8.js index 7ec8037f..4dfa7c6b 100644 --- a/test/compress/ie8.js +++ b/test/compress/ie8.js @@ -2398,3 +2398,25 @@ issue_3703: { } expect_stdout: "PASS" } + +issue_3750: { + options = { + evaluate: true, + ie8: true, + } + input: { + (function(a) { + return function a() { + return a && console.log("PASS"); + }(); + })(); + } + expect: { + (function(a) { + return function a() { + return a && console.log("PASS"); + }(); + })(); + } + expect_stdout: "PASS" +} -- cgit v1.2.3