Merge pull request #10376 from Microsoft/remove_file_exists_assertion

Remove old assertion about when we're allowed to use fileExists
This commit is contained in:
Andy 2016-08-17 06:04:33 -07:00 committed by GitHub
commit c9d1f0d150

View file

@ -3116,7 +3116,6 @@ namespace ts {
getCurrentDirectory: () => currentDirectory,
fileExists: (fileName): boolean => {
// stub missing host functionality
Debug.assert(!host.resolveModuleNames || !host.resolveTypeReferenceDirectives);
return hostCache.getOrCreateEntry(fileName) !== undefined;
},
readFile: (fileName): string => {