Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6db02e7

Browse filesBrowse files
author
Kanchalai Tanglertsampan
committed
Fix up incorrect system emit
1 parent 86c7129 commit 6db02e7
Copy full SHA for 6db02e7

2 files changed

+2-2Lines changed: 2 additions & 2 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/compiler/transformers/module/module.ts‎

Copy file name to clipboardExpand all lines: src/compiler/transformers/module/module.ts
+1-1Lines 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 {
Collapse file

‎src/compiler/transformers/module/system.ts‎

Copy file name to clipboardExpand all lines: src/compiler/transformers/module/system.ts
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.