aboutsummaryrefslogtreecommitdiff
path: root/test/compress/evaluate.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/compress/evaluate.js')
-rw-r--r--test/compress/evaluate.js23
1 files changed, 23 insertions, 0 deletions
diff --git a/test/compress/evaluate.js b/test/compress/evaluate.js
index 60f059a8..8425abe2 100644
--- a/test/compress/evaluate.js
+++ b/test/compress/evaluate.js
@@ -2395,3 +2395,26 @@ issue_3882: {
"NaN",
]
}
+
+issue_3887: {
+ options = {
+ evaluate: true,
+ reduce_vars: true,
+ unused: true,
+ }
+ input: {
+ (function(b) {
+ try {
+ b-- && console.log("PASS");
+ } catch (a_2) {}
+ })(1);
+ }
+ expect: {
+ (function(b) {
+ try {
+ b-- && console.log("PASS");
+ } catch (a_2) {}
+ })(1);
+ }
+ expect_stdout: "PASS"
+}