aboutsummaryrefslogtreecommitdiff
path: root/test/compress
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2020-04-27 09:51:21 +0100
committerGitHub <noreply@github.com>2020-04-27 16:51:21 +0800
commit818738beec9f49f864407c68fa26cc022c88815f (patch)
tree5a6548f3ce7c5338ba75eb8855829c7ec9d81c91 /test/compress
parentbc2a4a3bb8c08139c53d0d595181010ead516d77 (diff)
downloadtracifyjs-818738beec9f49f864407c68fa26cc022c88815f.tar.gz
tracifyjs-818738beec9f49f864407c68fa26cc022c88815f.zip
fix corner case in `ie8` (#3826)
fixes #3825
Diffstat (limited to 'test/compress')
-rw-r--r--test/compress/ie8.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/compress/ie8.js b/test/compress/ie8.js
index 8f81b01b..0c79ece0 100644
--- a/test/compress/ie8.js
+++ b/test/compress/ie8.js
@@ -2445,3 +2445,18 @@ issue_3823: {
}
expect_stdout: "PASS undefined"
}
+
+issue_3825: {
+ options = {
+ ie8: true,
+ pure_getters: "strict",
+ side_effects: true,
+ }
+ input: {
+ console.log({}[void (0..length ? 1 : 2)]);
+ }
+ expect: {
+ console.log({}[void 0]);
+ }
+ expect_stdout: "undefined"
+}