mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-10 06:41:59 -06:00
clean old program to prevent it from being captured into the closure
This commit is contained in:
parent
6a502cdacc
commit
e15c700549
@ -188,6 +188,9 @@ namespace ts {
|
||||
|
||||
verifyCompilerOptions();
|
||||
|
||||
// unconditionally set oldProgram to undefined to prevent it from being captured in closure
|
||||
oldProgram = undefined;
|
||||
|
||||
programTime += new Date().getTime() - start;
|
||||
|
||||
program = {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user