Skip to content

Commit

Permalink
chore(test) get tests passing as a demonstration
Browse files Browse the repository at this point in the history
  • Loading branch information
basarat committed May 13, 2015
1 parent 0321474 commit a781916
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/compiler/program.ts
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,10 @@ module ts {
return undefined;
}
function getNameIfExists(fileName: string): string {
if (sys.fileExists(fileName)) {
// To detect if file exists.
// Using this is to demonstrate that sys.fileExists is what is causing module resolution to fail in test driver
// This is just for code review
if (host.getSourceFile(fileName, ScriptTarget.Latest)) {
return fileName;
}
}
Expand Down

0 comments on commit a781916

Please sign in to comment.