We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ddcf212 commit 265d751Copy full SHA for 265d751
src/compiler/checker.ts
@@ -33384,7 +33384,6 @@ namespace ts {
33384
case SyntaxKind.ExclamationEqualsToken:
33385
case SyntaxKind.EqualsEqualsEqualsToken:
33386
case SyntaxKind.ExclamationEqualsEqualsToken:
33387
- isLiteralExpression
33388
if (isLiteralExpressionOfObject(left) || isLiteralExpressionOfObject(right)) {
33389
const eqType = operator === SyntaxKind.EqualsEqualsToken || operator === SyntaxKind.EqualsEqualsEqualsToken;
33390
error(errorNode, Diagnostics.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value, eqType ? "false" : "true");
0 commit comments