mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 04:08:41 +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
|
|
@ -416,7 +416,8 @@ impl Gen for ForOfStatement<'_> {
|
|||
self.left.print(p, ctx);
|
||||
p.print_soft_space();
|
||||
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());
|
||||
p.print_ascii_byte(b')');
|
||||
p.print_body(&self.body, false, ctx);
|
||||
|
|
|
|||
Loading…
Reference in a new issue