Only catalog types when tracing (#43446)

(cherry picked from commit 9fd2b48c51)
This commit is contained in:
Andrew Casey
2021-03-31 15:09:07 -07:00
committed by GitHub
parent 0d7b5e6db0
commit 6b33949ad6
+3 -1
View File
@@ -3778,7 +3778,9 @@ namespace ts {
const result = new Type(checker, flags);
typeCount++;
result.id = typeCount;
typeCatalog.push(result);
if (tracing) {
typeCatalog.push(result);
}
return result;
}