diff options
Diffstat (limited to 'test/compress')
-rw-r--r-- | test/compress/functions.js | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/test/compress/functions.js b/test/compress/functions.js index 82295383..40a38c02 100644 --- a/test/compress/functions.js +++ b/test/compress/functions.js @@ -3148,3 +3148,30 @@ issue_3402: { "function", ] } + +issue_3444: { + options = { + inline: true, + reduce_vars: true, + unused: true, + } + input: { + (function(h) { + return f; + function f() { + g(); + } + function g() { + h("PASS"); + } + })(console.log)(); + } + expect: { + (function(h) { + return function() { + void h("PASS"); + }; + })(console.log)(); + } + expect_stdout: "PASS" +} |