diff options
Diffstat (limited to 'test/compress')
-rw-r--r-- | test/compress/yields.js | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/compress/yields.js b/test/compress/yields.js index d21ebcbf..d577d7ef 100644 --- a/test/compress/yields.js +++ b/test/compress/yields.js @@ -150,6 +150,27 @@ for_await_of: { node_version: ">=10" } +comment_newline: { + beautify = { + comments: "all", + } + input: { + console.log(function*() { + yield ( + /* */ + "PASS" + ); + }().next().value); + } + expect_exact: [ + "console.log(function*(){", + "/* */", + 'yield"PASS"}().next().value);', + ] + expect_stdout: "PASS" + node_version: ">=4" +} + collapse_vars_1: { options = { collapse_vars: true, |