aboutsummaryrefslogtreecommitdiff
path: root/test/compress/functions.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/compress/functions.js')
-rw-r--r--test/compress/functions.js17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/compress/functions.js b/test/compress/functions.js
index 18505a18..a1a515a1 100644
--- a/test/compress/functions.js
+++ b/test/compress/functions.js
@@ -74,3 +74,20 @@ iifes_returning_constants_keep_fargs_false: {
console.log((a(), b(), 6));
}
}
+
+issue_485_crashing_1530: {
+ options = {
+ conditionals: true,
+ dead_code: true,
+ evaluate: true,
+ }
+ input: {
+ (function(a) {
+ if (true) return;
+ var b = 42;
+ })(this);
+ }
+ expect: {
+ this, void 0;
+ }
+}