aboutsummaryrefslogtreecommitdiff
path: root/test/compress/functions.js
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2020-11-29 02:05:48 +0000
committerGitHub <noreply@github.com>2020-11-29 10:05:48 +0800
commit9d34f8428bc4a5fb7d26ac953f585b2622d63171 (patch)
treefb36e0f7676354a2a5a2e7c1e4c8366894408370 /test/compress/functions.js
parentf045e2b46077e84db8b7ae787819a010077ce1fd (diff)
downloadtracifyjs-9d34f8428bc4a5fb7d26ac953f585b2622d63171.tar.gz
tracifyjs-9d34f8428bc4a5fb7d26ac953f585b2622d63171.zip
fix corner case in `side_effects` (#4326)
fixes #4325
Diffstat (limited to 'test/compress/functions.js')
-rw-r--r--test/compress/functions.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/compress/functions.js b/test/compress/functions.js
index e06596b8..49bbfac9 100644
--- a/test/compress/functions.js
+++ b/test/compress/functions.js
@@ -3322,9 +3322,7 @@ issue_3506_1: {
}
expect: {
var a = "FAIL";
- !function(b) {
- b && (a = "PASS");
- }(a);
+ a && (a = "PASS");
console.log(a);
}
expect_stdout: "PASS"