aboutsummaryrefslogtreecommitdiff
path: root/test/compress/reduce_vars.js
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2020-10-04 01:24:41 +0100
committerGitHub <noreply@github.com>2020-10-04 08:24:41 +0800
commit95ef4d5377efc159c7102f134d844ba617b28996 (patch)
treed3768efb468f24ba872c9ac39a981c0a7e0a7742 /test/compress/reduce_vars.js
parent04017215cc0bd9a19492cd8792dac556a0912043 (diff)
downloadtracifyjs-95ef4d5377efc159c7102f134d844ba617b28996.tar.gz
tracifyjs-95ef4d5377efc159c7102f134d844ba617b28996.zip
fix corner case in `mangle` (#4174)
Diffstat (limited to 'test/compress/reduce_vars.js')
-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 a79dd068..414d6646 100644
--- a/test/compress/reduce_vars.js
+++ b/test/compress/reduce_vars.js
@@ -5374,11 +5374,11 @@ defun_catch_4: {
try {
throw 42;
} catch (a) {
+ function a() {}
console.log(a);
}
}
- expect_stdout: "42"
- node_version: "<=4"
+ expect_stdout: true
}
defun_catch_5: {
@@ -5400,10 +5400,10 @@ defun_catch_5: {
throw 42;
} catch (a) {
console.log(a);
+ function a() {}
}
}
- expect_stdout: "42"
- node_version: "<=4"
+ expect_stdout: true
}
defun_catch_6: {