aboutsummaryrefslogtreecommitdiff
path: root/test/compress/join_vars.js
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2020-06-04 21:06:43 +0100
committerGitHub <noreply@github.com>2020-06-05 04:06:43 +0800
commit04fd3d90f8600bc8c6c5715abce06617110d88d6 (patch)
tree67095e0c2d75d6c0f5ce2f7c58da63d723aedb23 /test/compress/join_vars.js
parenta489f8cb5e8fbf2c090df84b47b475375563e8d7 (diff)
downloadtracifyjs-04fd3d90f8600bc8c6c5715abce06617110d88d6.tar.gz
tracifyjs-04fd3d90f8600bc8c6c5715abce06617110d88d6.zip
fix corner cases in `assignments`, `reduce_vars` & `unused` (#3950)
fixes #3949 fixes #3951
Diffstat (limited to 'test/compress/join_vars.js')
-rw-r--r--test/compress/join_vars.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/compress/join_vars.js b/test/compress/join_vars.js
index 590f9970..9f0b35b7 100644
--- a/test/compress/join_vars.js
+++ b/test/compress/join_vars.js
@@ -808,9 +808,9 @@ issue_3795: {
}
expect: {
var a = "FAIL", d = function() {
- if (a = 42, d) return -1;
+ if (void 0) return -1;
a = "PASS";
- }();
+ }(a = 42);
console.log(a, d);
}
expect_stdout: "PASS undefined"