Skip to content

Commit 2e8866b

Browse files
committed
Wipe control flow node cache at the start of each file check
1 parent 5d92674 commit 2e8866b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/compiler/checker.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28942,6 +28942,7 @@ namespace ts {
2894228942
if (skipTypeChecking(node, compilerOptions)) {
2894328943
return;
2894428944
}
28945+
sharedFlowTypes.clear(); // We clear this each time we start checking a file so memory usage doesn't grow too much due to flow result caching - we can't really fully clear at any smaller bounds (just erase subsets, if we wanted to track them)
2894528946

2894628947
// Grammar checking
2894728948
checkGrammarSourceFile(node);

0 commit comments

Comments
 (0)