mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-05 16:38:05 -06:00
remove assertion
This commit is contained in:
parent
d18facbdc1
commit
255cde582d
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user