diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/compress/default-values.js | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/test/compress/default-values.js b/test/compress/default-values.js index ec7c10ff..cefffc58 100644 --- a/test/compress/default-values.js +++ b/test/compress/default-values.js @@ -1313,3 +1313,31 @@ issue_4485_3: { expect_stdout: true node_version: ">=6" } + +issue_4496: { + options = { + default_values: true, + unused: true, + } + input: { + (function f(a = 0) { + console.log(function(b) { + a && b(); + return a; + }(f)); + })(42); + } + expect: { + (function f(a = 0) { + console.log(function(b) { + a && b(); + return a; + }(f)); + })(42); + } + expect_stdout: [ + "0", + "42", + ] + node_version: ">=6" +} |