mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-10 15:25:54 -06:00
Fixed the file map lookup to use hasOwnProperty
This commit is contained in:
parent
412ef61cd8
commit
2ac377cc76
@ -539,7 +539,7 @@ module Harness {
|
||||
getCurrentDirectory: sys.getCurrentDirectory,
|
||||
getCancellationToken: (): any => undefined,
|
||||
getSourceFile: (fn, languageVersion) => {
|
||||
if (ts.getCanonicalFileName(fn) in filemap) {
|
||||
if (Object.prototype.hasOwnProperty.call(filemap, ts.getCanonicalFileName(fn))) {
|
||||
return filemap[ts.getCanonicalFileName(fn)];
|
||||
} else {
|
||||
var lib = defaultLibFileName;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user