@@ -106972,7 +106972,7 @@ var ts;
106972106972 perDirectoryResolution.set(name, resolution);
106973106973 }
106974106974 resolutionsInFile.set(name, resolution);
106975- watchFailedLookupLocationsOfExternalModuleResolutions(name, resolution, path, getResolutionWithResolvedFileName, noResolveResolution );
106975+ watchFailedLookupLocationsOfExternalModuleResolutions(name, resolution, path, getResolutionWithResolvedFileName);
106976106976 if (existingResolution) {
106977106977 stopWatchFailedLookupLocationOfResolution(existingResolution, path, getResolutionWithResolvedFileName);
106978106978 }
@@ -107103,14 +107103,14 @@ var ts;
107103107103 function isPathWithDefaultFailedLookupExtension(path) {
107104107104 return ts.fileExtensionIsOneOf(path, failedLookupDefaultExtensions);
107105107105 }
107106- function watchFailedLookupLocationsOfExternalModuleResolutions(name, resolution, filePath, getResolutionWithResolvedFileName, noResolveResolution ) {
107106+ function watchFailedLookupLocationsOfExternalModuleResolutions(name, resolution, filePath, getResolutionWithResolvedFileName) {
107107107107 if (resolution.refCount) {
107108107108 resolution.refCount++;
107109107109 ts.Debug.assertDefined(resolution.files);
107110107110 }
107111107111 else {
107112107112 resolution.refCount = 1;
107113- ts.Debug.assert(resolution.files === undefined || ( resolution === noResolveResolution && ts.length(noResolveResolution.files) === 0));
107113+ ts.Debug.assert(ts.length( resolution.files) === 0); // This resolution shouldnt be referenced by any file yet
107114107114 if (ts.isExternalModuleNameRelative(name)) {
107115107115 watchFailedLookupLocationOfResolution(resolution);
107116107116 }
0 commit comments