From a3968e7574e435bb5a3854df1326397780b33aa8 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Fri, 9 Oct 2020 15:36:50 -0700 Subject: [PATCH] Update src/compiler/builder.ts Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> --- src/compiler/builder.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/compiler/builder.ts b/src/compiler/builder.ts index 8b29c3a7669f9..794018a2fde8f 100644 --- a/src/compiler/builder.ts +++ b/src/compiler/builder.ts @@ -1037,7 +1037,8 @@ namespace ts { savedAffectedFilesPendingEmitIndex = state.affectedFilesPendingEmitIndex; } - if (kind === BuilderProgramKind.EmitAndSemanticDiagnosticsBuilderProgram) assertSourceFileOkWithoutNextAffectedCall(state, targetSourceFile); + if (kind === BuilderProgramKind.EmitAndSemanticDiagnosticsBuilderProgram) + assertSourceFileOkWithoutNextAffectedCall(state, targetSourceFile); const result = handleNoEmitOptions(builderProgram, targetSourceFile, writeFile, cancellationToken); if (result) return result;