diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/compress/reduce_vars.js | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/compress/reduce_vars.js b/test/compress/reduce_vars.js index c1531b25..735688ea 100644 --- a/test/compress/reduce_vars.js +++ b/test/compress/reduce_vars.js @@ -7677,3 +7677,22 @@ issue_4949: { } expect_stdout: "0 1" } + +issue_5048: { + options = { + reduce_funcs: true, + reduce_vars: true, + unused: true, + } + input: { + console.log(function() { + var a = function() { + return a + 42; + }; + }()); + } + expect: { + console.log(function() {}()); + } + expect_stdout: "undefined" +} |