aboutsummaryrefslogtreecommitdiff
path: root/test/compress/reduce_vars.js
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2020-02-12 01:01:17 +0000
committerGitHub <noreply@github.com>2020-02-12 01:01:17 +0000
commitdd22eda888380be41f47bba1f6740b283fb099cc (patch)
treea05f054dab3555b5f373ca5ac0c01bc0167c69b3 /test/compress/reduce_vars.js
parentf4c77886e748ff5945b73f2584916ec3b760ee98 (diff)
downloadtracifyjs-dd22eda888380be41f47bba1f6740b283fb099cc.tar.gz
tracifyjs-dd22eda888380be41f47bba1f6740b283fb099cc.zip
enhance `evaluate` (#3714)
Diffstat (limited to 'test/compress/reduce_vars.js')
-rw-r--r--test/compress/reduce_vars.js9
1 files changed, 2 insertions, 7 deletions
diff --git a/test/compress/reduce_vars.js b/test/compress/reduce_vars.js
index 3331732a..6db0a477 100644
--- a/test/compress/reduce_vars.js
+++ b/test/compress/reduce_vars.js
@@ -2071,13 +2071,8 @@ issue_1670_6: {
}
expect: {
(function(a) {
- switch (1) {
- case a = 1:
- console.log(a);
- break;
- default:
- console.log(2);
- }
+ a = 1;
+ console.log(a);
})(1);
}
expect_stdout: "1"