wrap host.getCanonicalFileName in arrow function
This commit is contained in:
parent
937927a051
commit
3db5bbf93f
1 changed files with 1 additions and 1 deletions
|
@ -152,7 +152,7 @@ module ts {
|
||||||
let start = new Date().getTime();
|
let start = new Date().getTime();
|
||||||
|
|
||||||
host = host || createCompilerHost(options);
|
host = host || createCompilerHost(options);
|
||||||
let filesByName = createFileMap<SourceFile>(host.getCanonicalFileName);
|
let filesByName = createFileMap<SourceFile>(fileName => host.getCanonicalFileName(fileName));
|
||||||
|
|
||||||
forEach(rootNames, name => processRootFile(name, false));
|
forEach(rootNames, name => processRootFile(name, false));
|
||||||
if (!seenNoDefaultLib) {
|
if (!seenNoDefaultLib) {
|
||||||
|
|
Loading…
Reference in a new issue