From 93e5cae7295ccc32cac6fad03a56ca0937f2761b Mon Sep 17 00:00:00 2001 From: Vladimir Matveev Date: Thu, 9 Jul 2015 13:13:49 -0700 Subject: [PATCH] addressed PR feedback: added comments --- src/services/shims.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/services/shims.ts b/src/services/shims.ts index 43e7de79fa4..84580470b27 100644 --- a/src/services/shims.ts +++ b/src/services/shims.ts @@ -248,6 +248,8 @@ namespace ts { } public dispose(): void { + // if scriptSnapshotShim is a COM object then property check becomes method call with no arguments + // 'in' does not have this effect if ("dispose" in this.scriptSnapshotShim) { this.scriptSnapshotShim.dispose(); }