Skip to content

Commit 265d751

Browse files
committed
chore: include regexp, function and class literal
1 parent ddcf212 commit 265d751

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/compiler/checker.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33384,7 +33384,6 @@ namespace ts {
3338433384
case SyntaxKind.ExclamationEqualsToken:
3338533385
case SyntaxKind.EqualsEqualsEqualsToken:
3338633386
case SyntaxKind.ExclamationEqualsEqualsToken:
33387-
isLiteralExpression
3338833387
if (isLiteralExpressionOfObject(left) || isLiteralExpressionOfObject(right)) {
3338933388
const eqType = operator === SyntaxKind.EqualsEqualsToken || operator === SyntaxKind.EqualsEqualsEqualsToken;
3339033389
error(errorNode, Diagnostics.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value, eqType ? "false" : "true");

0 commit comments

Comments
 (0)