Skip to content

Commit

Permalink
Fix collapse computed properties with circular reference
Browse files Browse the repository at this point in the history
  • Loading branch information
jhen0409 committed May 5, 2017
1 parent bda4b0f commit 24f55df
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ class ObjectCollapser extends Collapser {
if (checkReference(right)) {
return false;
}
if (obj.isIdentifier() && right.isIdentifier() && obj.node.name === right.node.name) {
return false;
}

return true;
};
Expand Down

0 comments on commit 24f55df

Please # to comment.