diff options
Diffstat (limited to 'test/compress/drop-unused.js')
-rw-r--r-- | test/compress/drop-unused.js | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/compress/drop-unused.js b/test/compress/drop-unused.js index 99ab7b40..949106c2 100644 --- a/test/compress/drop-unused.js +++ b/test/compress/drop-unused.js @@ -2444,3 +2444,21 @@ issue_3746: { } expect_stdout: "PASS" } + +join_vars_assign: { + options = { + join_vars: true, + unused: true, + } + input: { + var y, x; + x = Object("PAS"); + y = Object("S"); + console.log(x + y); + } + expect: { + var x = Object("PAS"), y = Object("S"); + console.log(x + y); + } + expect_stdout: "PASS" +} |