Fix up incorrect system emit

This commit is contained in:
Kanchalai Tanglertsampan
2017-03-16 14:01:37 -07:00
parent 86c7129027
commit 6db02e7438
2 changed files with 2 additions and 2 deletions

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 {

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)) {