Skip to content

Commit a781916

Browse files
committedMay 13, 2015
chore(test) get tests passing as a demonstration
1 parent 0321474 commit a781916

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

‎src/compiler/program.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,10 @@ module ts {
248248
return undefined;
249249
}
250250
function getNameIfExists(fileName: string): string {
251-
if (sys.fileExists(fileName)) {
251+
// To detect if file exists.
252+
// Using this is to demonstrate that sys.fileExists is what is causing module resolution to fail in test driver
253+
// This is just for code review
254+
if (host.getSourceFile(fileName, ScriptTarget.Latest)) {
252255
return fileName;
253256
}
254257
}

0 commit comments

Comments
 (0)