Skip to content

Commit 52f826a

Browse files
authored
Revert assertion addition (#22622) (#22920)
1 parent 77e8a69 commit 52f826a

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
@@ -8059,8 +8059,7 @@ namespace ts {
80598059
function getLiteralTypeFromPropertyName(prop: Symbol) {
80608060
const links = getSymbolLinks(getLateBoundSymbol(prop));
80618061
if (!links.nameType) {
8062-
if (links.target && links.target !== unknownSymbol && links.target !== resolvingSymbol) {
8063-
Debug.assert(links.target.escapedName === prop.escapedName || links.target.escapedName === InternalSymbolName.Computed, "Target symbol and symbol do not have the same name");
8062+
if (links.target && links.target !== unknownSymbol && links.target !== resolvingSymbol && links.target.escapedName === prop.escapedName) {
80648063
links.nameType = getLiteralTypeFromPropertyName(links.target);
80658064
}
80668065
else {

0 commit comments

Comments
 (0)