fix(codegen): fix spacing of for await (x of y) (#5890)

This commit is contained in:
Boshen 2024-09-19 15:15:28 +00:00
parent 84a5816d03
commit cee9d0ba5f

View file

@ -302,10 +302,10 @@ impl<'a> Gen for ForOfStatement<'a> {
p.add_source_mapping(self.span.start);
p.print_indent();
p.print_str("for");
p.print_soft_space();
if self.r#await {
p.print_str(" await");
}
p.print_soft_space();
p.print_char(b'(');
self.left.print(p, ctx);
p.print_soft_space();