Skip to content

Commit 6b33949

Browse files
authored
Only catalog types when tracing (#43446)
(cherry picked from commit 9fd2b48)
1 parent 0d7b5e6 commit 6b33949

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/compiler/checker.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -3778,7 +3778,9 @@ namespace ts {
37783778
const result = new Type(checker, flags);
37793779
typeCount++;
37803780
result.id = typeCount;
3781-
typeCatalog.push(result);
3781+
if (tracing) {
3782+
typeCatalog.push(result);
3783+
}
37823784
return result;
37833785
}
37843786

0 commit comments

Comments
 (0)