diff options
Diffstat (limited to 'test/compress/issue-2652.js')
-rw-r--r-- | test/compress/issue-2652.js | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/test/compress/issue-2652.js b/test/compress/issue-2652.js new file mode 100644 index 00000000..d3159742 --- /dev/null +++ b/test/compress/issue-2652.js @@ -0,0 +1,33 @@ +insert_semicolon: { + beautify = { + beautify: true, + comments: "all", + } + input: { + var a + /* foo */ var b + } + expect_exact: [ + "var a", + "/* foo */;", + "", + "var b;", + ] +} + +unary_postfix: { + beautify = { + beautify: true, + comments: "all", + } + input: { + a + /* foo */++b + } + expect_exact: [ + "a", + "/* foo */;", + "", + "++b;", + ] +} |