Skip to content

Commit

Permalink
Update src/compiler/builder.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
sheetalkamat committed Oct 9, 2020
1 parent a3968e7 commit 174b00a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/compiler/builder.ts
Expand Up @@ -1037,8 +1037,9 @@ namespace ts {
savedAffectedFilesPendingEmitIndex = state.affectedFilesPendingEmitIndex;
}

if (kind === BuilderProgramKind.EmitAndSemanticDiagnosticsBuilderProgram)
if (kind === BuilderProgramKind.EmitAndSemanticDiagnosticsBuilderProgram) {
assertSourceFileOkWithoutNextAffectedCall(state, targetSourceFile);
}
const result = handleNoEmitOptions(builderProgram, targetSourceFile, writeFile, cancellationToken);
if (result) return result;

Expand Down

0 comments on commit 174b00a

Please sign in to comment.