Skip to content

Commit 59b76ce

Browse files
committed
Fix call to Debug.fail in compiler
1 parent 51dcce2 commit 59b76ce

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/compiler/checker.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31531,8 +31531,7 @@ namespace ts {
3153131531
const nameType = checkComputedPropertyName(name);
3153231532
return isTypeAssignableToKind(nameType, TypeFlags.ESSymbolLike) ? nameType : stringType;
3153331533
default:
31534-
Debug.fail("Unsupported property name.");
31535-
return errorType;
31534+
return Debug.fail("Unsupported property name.");
3153631535
}
3153731536
}
3153831537

0 commit comments

Comments
 (0)