aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2020-03-21 00:55:24 +0800
committerGitHub <noreply@github.com>2020-03-21 00:55:24 +0800
commit0a1c9b34cea8bf740c70d5457ef9e3bd37778607 (patch)
tree8f05d44c9a5f8a749fa21425cb90a218e09b85d5 /test
parent03e968be62ac6484a24edd24453e118b56e5af15 (diff)
downloadtracifyjs-0a1c9b34cea8bf740c70d5457ef9e3bd37778607.tar.gz
tracifyjs-0a1c9b34cea8bf740c70d5457ef9e3bd37778607.zip
fix corner case in `evaluate` & `ie8` (#3751)
fixes #3750
Diffstat (limited to 'test')
-rw-r--r--test/compress/ie8.js22
1 files changed, 22 insertions, 0 deletions
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"
+}