Skip to content

Commit

Permalink
Revert assertion addition (#22622)
Browse files Browse the repository at this point in the history
  • Loading branch information
weswigham authored Mar 16, 2018
1 parent 19ec83f commit bfe755c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/compiler/checker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8017,8 +8017,7 @@ namespace ts {
function getLiteralTypeFromPropertyName(prop: Symbol) {
const links = getSymbolLinks(getLateBoundSymbol(prop));
if (!links.nameType) {
if (links.target && links.target !== unknownSymbol && links.target !== resolvingSymbol) {
Debug.assert(links.target.escapedName === prop.escapedName || links.target.escapedName === InternalSymbolName.Computed, "Target symbol and symbol do not have the same name");
if (links.target && links.target !== unknownSymbol && links.target !== resolvingSymbol && links.target.escapedName === prop.escapedName) {
links.nameType = getLiteralTypeFromPropertyName(links.target);
}
else {
Expand Down

0 comments on commit bfe755c

Please sign in to comment.