Skip to content

Commit 6db02e7

Browse files
author
Kanchalai Tanglertsampan
committed
Fix up incorrect system emit
1 parent 86c7129 commit 6db02e7

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/compiler/transformers/module/module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ namespace ts {
510510
case ModuleKind.UMD:
511511
return transformImportCallExpressionUMD(node);
512512
}
513-
Debug.assert(false, "All supported module kind in this transformation step should have been handled");
513+
Debug.fail("All supported module kind in this transformation step should have been handled");
514514
}
515515

516516
function transformImportCallExpressionUMD(node: ImportCallExpression): Expression {

src/compiler/transformers/module/system.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,7 @@ namespace ts {
677677
visitNode(node.body, visitor, isBlock)));
678678
}
679679
else {
680-
hoistedStatements = append(hoistedStatements, node);
680+
hoistedStatements = append(hoistedStatements, visitEachChild(node, visitor, context));
681681
}
682682

683683
if (hasAssociatedEndOfDeclarationMarker(node)) {

0 commit comments

Comments
 (0)