diff --git a/src/compiler/resolutionCache.ts b/src/compiler/resolutionCache.ts index d6dfaf40966..725f94c7799 100644 --- a/src/compiler/resolutionCache.ts +++ b/src/compiler/resolutionCache.ts @@ -406,7 +406,7 @@ namespace ts { perDirectoryResolution.set(name, resolution); } resolutionsInFile.set(name, resolution); - watchFailedLookupLocationsOfExternalModuleResolutions(name, resolution, path, getResolutionWithResolvedFileName, noResolveResolution); + watchFailedLookupLocationsOfExternalModuleResolutions(name, resolution, path, getResolutionWithResolvedFileName); if (existingResolution) { stopWatchFailedLookupLocationOfResolution(existingResolution, path, getResolutionWithResolvedFileName); } @@ -561,7 +561,6 @@ namespace ts { resolution: T, filePath: Path, getResolutionWithResolvedFileName: GetResolutionWithResolvedFileName, - noResolveResolution: T ) { if (resolution.refCount) { resolution.refCount++; @@ -569,7 +568,7 @@ namespace ts { } else { resolution.refCount = 1; - Debug.assert(resolution.files === undefined || (resolution === noResolveResolution && length(noResolveResolution.files) === 0)); + Debug.assert(length(resolution.files) === 0); // This resolution shouldnt be referenced by any file yet if (isExternalModuleNameRelative(name)) { watchFailedLookupLocationOfResolution(resolution); }