From 2ac377cc7626c786bacbe9a78b0dd85dfb75d3db Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Thu, 21 Aug 2014 13:03:08 -0700 Subject: [PATCH] Fixed the file map lookup to use hasOwnProperty --- src/harness/harness.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/harness/harness.ts b/src/harness/harness.ts index b273a87e418..847e8b47286 100644 --- a/src/harness/harness.ts +++ b/src/harness/harness.ts @@ -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;