Skip to content

Commit b925c16

Browse files
authored
Only catalog types when tracing (#43304)
1 parent fbc9c94 commit b925c16

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/compiler/checker.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3816,7 +3816,9 @@ namespace ts {
38163816
const result = new Type(checker, flags);
38173817
typeCount++;
38183818
result.id = typeCount;
3819-
typeCatalog.push(result);
3819+
if (tracing) {
3820+
typeCatalog.push(result);
3821+
}
38203822
return result;
38213823
}
38223824

0 commit comments

Comments
 (0)