Skip to content

Commit

Permalink
Only catalog types when tracing (#43446)
Browse files Browse the repository at this point in the history
(cherry picked from commit 9fd2b48)
  • Loading branch information
amcasey authored Mar 31, 2021
1 parent 0d7b5e6 commit 6b33949
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/compiler/checker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 6b33949

Please sign in to comment.