We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 606bc4b commit ce30fd0Copy full SHA for ce30fd0
src/compiler/transformers/esnext.ts
@@ -331,6 +331,9 @@ export function transformESNext(context: TransformationContext): (x: SourceFile
331
factory.createBlock([node.statement], /*multiLine*/ true);
332
statements.push(wrappedStatement);
333
}
334
+ else {
335
+ statements.push(...(isBlock(node.statement) ? node.statement.statements : [node.statement]))
336
+ }
337
338
return visitNode(
339
factory.updateForOfStatement(
0 commit comments