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

This commit is contained in:
Vladimir Matveev committed 2015-07-09 14:45:39 -07:00
1 parent 6a502cdacc
commit e15c700549
1 file changed
+3
+3
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 = {