File tree 2 files changed +2
-4
lines changed
2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -1795,9 +1795,7 @@ namespace ts {
1795
1795
1796
1796
const target = getTargetOfBindingOrAssignmentElement ( bindingElement ) ;
1797
1797
if ( target && isPropertyName ( target ) ) {
1798
- return isComputedPropertyName ( target ) && isStringOrNumericLiteral ( target . expression )
1799
- ? target . expression
1800
- : target ;
1798
+ return target ;
1801
1799
}
1802
1800
}
1803
1801
Original file line number Diff line number Diff line change @@ -976,7 +976,7 @@ namespace ts {
976
976
) ;
977
977
}
978
978
979
- function visitArrayAssignmentTarget ( node : AssignmentPattern ) {
979
+ function visitArrayAssignmentTarget ( node : BindingOrAssignmentElement ) {
980
980
const target = getTargetOfBindingOrAssignmentElement ( node ) ;
981
981
if ( target && isPrivateIdentifierPropertyAccessExpression ( target ) ) {
982
982
const wrapped = wrapPrivateIdentifierForDestructuringTarget ( target ) ;
You can’t perform that action at this time.
0 commit comments