File tree Expand file tree Collapse file tree
src/compiler/transformers Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -370,16 +370,19 @@ namespace ts {
370370 ) ;
371371 }
372372 else if ( isLiteralExpression ( propertyName ) ) {
373- return createElementAccess (
374- expression ,
375- getSynthesizedClone ( propertyName )
376- ) ;
373+ const clone = getSynthesizedClone ( propertyName ) ;
374+ clone . text = unescapeIdentifier ( clone . text ) ;
375+ return createElementAccess ( expression , clone ) ;
377376 }
378377 else {
379- return createPropertyAccess (
380- expression ,
381- isGeneratedIdentifier ( propertyName ) ? getSynthesizedClone ( propertyName ) : createIdentifier ( propertyName . text )
382- ) ;
378+ if ( isGeneratedIdentifier ( propertyName ) ) {
379+ const clone = getSynthesizedClone ( propertyName ) ;
380+ clone . text = unescapeIdentifier ( clone . text ) ;
381+ return createPropertyAccess ( expression , clone ) ;
382+ }
383+ else {
384+ return createPropertyAccess ( expression , createIdentifier ( unescapeIdentifier ( propertyName . text ) ) ) ;
385+ }
383386 }
384387 }
385388 }
You can’t perform that action at this time.
0 commit comments