mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 12:21:58 +00:00
feat(codegen): minify for (_ of []) -> for(_ of[]) (#8086)
This commit is contained in:
parent
8b8cbcd2db
commit
f873139a0f
1 changed files with 2 additions and 1 deletions
|
|
@ -417,6 +417,7 @@ impl Gen for ForOfStatement<'_> {
|
||||||
p.print_soft_space();
|
p.print_soft_space();
|
||||||
p.print_space_before_identifier();
|
p.print_space_before_identifier();
|
||||||
p.print_str("of");
|
p.print_str("of");
|
||||||
|
p.print_soft_space();
|
||||||
self.right.print_expr(p, Precedence::Comma, Context::empty());
|
self.right.print_expr(p, Precedence::Comma, Context::empty());
|
||||||
p.print_ascii_byte(b')');
|
p.print_ascii_byte(b')');
|
||||||
p.print_body(&self.body, false, ctx);
|
p.print_body(&self.body, false, ctx);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue