mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
addressed PR feedback: added comments
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user