From 95ceb22a7a0da65c7c1f8d443775e0433e55a3bd Mon Sep 17 00:00:00 2001 From: Boshen Date: Tue, 24 Dec 2024 10:33:18 +0800 Subject: [PATCH] feat(codegen): minify `for (_ of [])` -> `for(_ of[])` --- crates/oxc_codegen/src/gen.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/oxc_codegen/src/gen.rs b/crates/oxc_codegen/src/gen.rs index d0ab1eb340c6b1..db32ce1da66513 100644 --- a/crates/oxc_codegen/src/gen.rs +++ b/crates/oxc_codegen/src/gen.rs @@ -416,7 +416,7 @@ 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"); self.right.print_expr(p, Precedence::Comma, Context::empty()); p.print_ascii_byte(b')'); p.print_body(&self.body, false, ctx);