Skip to content

Commit

Permalink
Fix TypeScript on MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderMoskovkin committed Aug 14, 2017
1 parent f230838 commit b50cf24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/test-file/formats/typescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export default class TypeScriptTestFileCompiler extends APIBasedTestFileCompiler
// <program> will be compiled. <program> contains a file specified in createProgram() plus all its dependencies.
// This mode is much faster than compiling files one-by-one, and it is used in the tsc CLI compiler.
program.emit(void 0, (outputName, result, writeBOM, onError, sources) => {
var sourcePath = TypeScriptTestFileCompiler._normalizeFilename(sources[0].path);
var sourcePath = TypeScriptTestFileCompiler._normalizeFilename(sources[0].fileName);

this.cache[sourcePath] = result;
});
Expand Down

0 comments on commit b50cf24

Please sign in to comment.