diff options
Diffstat (limited to 'test/compress/spreads.js')
-rw-r--r-- | test/compress/spreads.js | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/test/compress/spreads.js b/test/compress/spreads.js index f8c0d592..02bb3f0e 100644 --- a/test/compress/spreads.js +++ b/test/compress/spreads.js @@ -294,6 +294,31 @@ reduce_vars_2: { node_version: ">=6" } +reduce_vars_3: { + options = { + reduce_funcs: true, + reduce_vars: true, + toplevel: true, + unused: true, + } + input: { + function f() {} + function g() { + return (a => a)(...[ f ]); + } + console.log(g() === g() ? "PASS" : "FAIL"); + } + expect: { + function f() {} + function g() { + return (a => a)(...[ f ]); + } + console.log(g() === g() ? "PASS" : "FAIL"); + } + expect_stdout: "PASS" + node_version: ">=6" +} + convert_setter: { options = { objects: true, |