File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -1795,9 +1795,7 @@ namespace ts {
17951795
17961796 const target = getTargetOfBindingOrAssignmentElement ( bindingElement ) ;
17971797 if ( target && isPropertyName ( target ) ) {
1798- return isComputedPropertyName ( target ) && isStringOrNumericLiteral ( target . expression )
1799- ? target . expression
1800- : target ;
1798+ return target ;
18011799 }
18021800 }
18031801
Original file line number Diff line number Diff line change @@ -976,7 +976,7 @@ namespace ts {
976976 ) ;
977977 }
978978
979- function visitArrayAssignmentTarget ( node : AssignmentPattern ) {
979+ function visitArrayAssignmentTarget ( node : BindingOrAssignmentElement ) {
980980 const target = getTargetOfBindingOrAssignmentElement ( node ) ;
981981 if ( target && isPrivateIdentifierPropertyAccessExpression ( target ) ) {
982982 const wrapped = wrapPrivateIdentifierForDestructuringTarget ( target ) ;
You can’t perform that action at this time.
0 commit comments