From 305c58b03a97202841cd2a22642e70c8b13ba37d Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Wed, 8 Jul 2020 11:02:07 -0700 Subject: [PATCH] Remove unnecessary assert (#39483) This assert made no sense sine we donot use the value from existing structureIsUsed at all Fixes #36718 --- src/compiler/program.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/compiler/program.ts b/src/compiler/program.ts index 006ef647583..35c540fa14f 100644 --- a/src/compiler/program.ts +++ b/src/compiler/program.ts @@ -1236,8 +1236,6 @@ namespace ts { return oldProgram.structureIsReused = StructureIsReused.Not; } - Debug.assert(!(oldProgram.structureIsReused! & (StructureIsReused.Completely | StructureIsReused.SafeModules))); - // there is an old program, check if we can reuse its structure const oldRootNames = oldProgram.getRootFileNames(); if (!arrayIsEqualTo(oldRootNames, rootNames)) {