From 78d1bb92d4560b73099afddd3bd2a85641bf3002 Mon Sep 17 00:00:00 2001 From: "Alex Lam S.L" Date: Sun, 5 Mar 2017 12:12:59 +0800 Subject: fix a corner case in #1530 (#1552) --- test/compress/functions.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'test') 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; + } +} -- cgit v1.2.3