diff options
Diffstat (limited to 'test/compress')
-rw-r--r-- | test/compress/dead-code.js | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/test/compress/dead-code.js b/test/compress/dead-code.js index 9b45fe87..41f58427 100644 --- a/test/compress/dead-code.js +++ b/test/compress/dead-code.js @@ -917,3 +917,28 @@ issue_2860_2: { } expect_stdout: "1" } + +issue_2929: { + options = { + dead_code: true, + } + input: { + console.log(function(a) { + try { + return null.p = a = 1; + } catch (e) { + return a ? "PASS" : "FAIL"; + } + }()); + } + expect: { + console.log(function(a) { + try { + return null.p = a = 1; + } catch (e) { + return a ? "PASS" : "FAIL"; + } + }()); + } + expect_stdout: "PASS" +} |