remove assertion

This commit is contained in:
Wesley Wigham 2015-10-21 16:15:53 -07:00
parent d18facbdc1
commit 255cde582d

View File

@ -735,9 +735,7 @@ namespace ts {
}
function emitExternalModuleSpecifier(moduleSpecifier: Expression) {
Debug.assert(moduleSpecifier.kind === SyntaxKind.StringLiteral);
if ((!root) && (compilerOptions.out || compilerOptions.outFile)) {
if (moduleSpecifier.kind === SyntaxKind.StringLiteral && (!root) && (compilerOptions.out || compilerOptions.outFile)) {
let moduleSymbol = resolver.getSymbolAtLocation(moduleSpecifier);
if (moduleSymbol) {
let moduleDeclaration = getDeclarationOfKind(moduleSymbol, SyntaxKind.SourceFile) as SourceFile;