aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2020-09-16 20:12:08 +0100
committerGitHub <noreply@github.com>2020-09-17 03:12:08 +0800
commita9d934ab4eacc3c987a91f8e7fd176e983c36f55 (patch)
tree12cf34bd9778f88b2b8e724c3f77a613fb3730da /test
parent2a053710bdafde88c305d318ed2e0196d5dcdfc7 (diff)
downloadtracifyjs-a9d934ab4eacc3c987a91f8e7fd176e983c36f55.tar.gz
tracifyjs-a9d934ab4eacc3c987a91f8e7fd176e983c36f55.zip
improve handling of `switch` statements (#4114)
Diffstat (limited to 'test')
-rw-r--r--test/compress/reduce_vars.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/compress/reduce_vars.js b/test/compress/reduce_vars.js
index 34d358cb..c911efe0 100644
--- a/test/compress/reduce_vars.js
+++ b/test/compress/reduce_vars.js
@@ -2176,6 +2176,7 @@ issue_1670_6: {
keep_fargs: false,
reduce_funcs: true,
reduce_vars: true,
+ sequences: true,
side_effects: true,
switches: true,
unused: true,
@@ -2193,10 +2194,9 @@ issue_1670_6: {
})(1);
}
expect: {
- (function(a) {
- a = 1;
- console.log(a);
- })(1);
+ (function() {
+ console.log(1);
+ })();
}
expect_stdout: "1"
}