render comments in custom ASTs gracefully (#3393)

fixes #3246
This commit is contained in:
Alex Lam S.L
2019-05-02 13:50:51 +08:00
committed by GitHub
parent 429d2b56b7
commit a89d424a0b
3 changed files with 42 additions and 16 deletions

View File

@@ -219,8 +219,9 @@ function run_compress_tests() {
var input_code = make_code(input);
var input_formatted = make_code(test.input, {
beautify: true,
comments: "all",
keep_quoted_props: true,
quote_style: 3,
keep_quoted_props: true
});
try {
U.parse(input_code);