wrap host.getCanonicalFileName in arrow function

This commit is contained in:
Vladimir Matveev 2015-06-05 12:00:53 -07:00
parent 45cf145fe8
commit 6658e0fc58

View file

@ -152,7 +152,7 @@ module ts {
let start = new Date().getTime();
host = host || createCompilerHost(options);
let filesByName = createFileMap<SourceFile>(host.getCanonicalFileName);
let filesByName = createFileMap<SourceFile>(fileName => host.getCanonicalFileName(fileName));
forEach(rootNames, name => processRootFile(name, /*isDefaultLib:*/ false));
if (!skipDefaultLib) {