Skip to content

Commit 195fad2

Browse files
committed
Reduce unnecessary error computation
...during overload resolution. Based on a trace that was spending 30% of a (very slow) overload resolution elaborating errors that were then dropped.
1 parent 62b4377 commit 195fad2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/checker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26399,7 +26399,7 @@ namespace ts {
2639926399
const isTaggedTemplate = node.kind === SyntaxKind.TaggedTemplateExpression;
2640026400
const isDecorator = node.kind === SyntaxKind.Decorator;
2640126401
const isJsxOpeningOrSelfClosingElement = isJsxOpeningLikeElement(node);
26402-
const reportErrors = !candidatesOutArray;
26402+
const reportErrors = !candidatesOutArray && produceDiagnostics;
2640326403

2640426404
let typeArguments: NodeArray<TypeNode> | undefined;
2640526405

0 commit comments

Comments
 (0)