diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/compress/destructured.js | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/test/compress/destructured.js b/test/compress/destructured.js index 6eea10d2..afc9152b 100644 --- a/test/compress/destructured.js +++ b/test/compress/destructured.js @@ -1684,3 +1684,29 @@ issue_4315: { expect_stdout: "PASS" node_version: ">=6" } + +issue_4319: { + options = { + inline: true, + reduce_vars: true, + toplevel: true, + } + input: { + function f(a) { + while (!a); + } + console.log(function({}) { + return f(console); + }(0)); + } + expect: { + function f(a) { + while (!a); + } + console.log(function({}) { + return f(console); + }(0)); + } + expect_stdout: "undefined" + node_version: ">=6" +} |