We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 412ef61 commit 2ac377cCopy full SHA for 2ac377c
src/harness/harness.ts
@@ -539,7 +539,7 @@ module Harness {
539
getCurrentDirectory: sys.getCurrentDirectory,
540
getCancellationToken: (): any => undefined,
541
getSourceFile: (fn, languageVersion) => {
542
- if (ts.getCanonicalFileName(fn) in filemap) {
+ if (Object.prototype.hasOwnProperty.call(filemap, ts.getCanonicalFileName(fn))) {
543
return filemap[ts.getCanonicalFileName(fn)];
544
} else {
545
var lib = defaultLibFileName;
0 commit comments