clean old program to prevent it from being captured into the closure

This commit is contained in:
Vladimir Matveev 2015-07-09 14:45:39 -07:00
parent 6a502cdacc
commit e15c700549

View File

@ -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 = {