Skip to content

Commit 93e5cae

Browse files
committed
addressed PR feedback: added comments
1 parent 7d6f8f3 commit 93e5cae

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/services/shims.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,8 @@ namespace ts {
248248
}
249249

250250
public dispose(): void {
251+
// if scriptSnapshotShim is a COM object then property check becomes method call with no arguments
252+
// 'in' does not have this effect
251253
if ("dispose" in this.scriptSnapshotShim) {
252254
this.scriptSnapshotShim.dispose();
253255
}

0 commit comments

Comments
 (0)