Fix up incorrect system emit

This commit is contained in:
Kanchalai Tanglertsampan committed 2017-03-16 14:01:37 -07:00
1 parent 86c7129027
commit 6db02e7438
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -510,7 +510,7 @@ namespace ts {
case ModuleKind.UMD:
return transformImportCallExpressionUMD(node);
}
Debug.assert(false, "All supported module kind in this transformation step should have been handled");
Debug.fail("All supported module kind in this transformation step should have been handled");
}
function transformImportCallExpressionUMD(node: ImportCallExpression): Expression {
+1 -1
View File
@@ -677,7 +677,7 @@ namespace ts {
visitNode(node.body, visitor, isBlock)));
}
else {
hoistedStatements = append(hoistedStatements, node);
hoistedStatements = append(hoistedStatements, visitEachChild(node, visitor, context));
}
if (hasAssociatedEndOfDeclarationMarker(node)) {