fix(wasm): codegen is broken due to preserve_parens(false)

This commit is contained in:
Boshen 2024-07-11 01:30:20 +08:00
parent 4a656c3a18
commit 254d5e07e3
No known key found for this signature in database
GPG key ID: 67715A371E534061

View file

@ -205,7 +205,6 @@ impl Oxc {
if run_options.prettier_format() {
let ret = Parser::new(&allocator, source_text, source_type)
.allow_return_outside_function(parser_options.allow_return_outside_function)
.preserve_parens(false)
.parse();
let printed =
Prettier::new(&allocator, source_text, ret.trivias, PrettierOptions::default())
@ -216,7 +215,6 @@ impl Oxc {
if run_options.prettier_ir() {
let ret = Parser::new(&allocator, source_text, source_type)
.allow_return_outside_function(parser_options.allow_return_outside_function)
.preserve_parens(false)
.parse();
let prettier_doc = Prettier::new(
&allocator,