We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3383d8a commit 5eca8a3Copy full SHA for 5eca8a3
src/compiler/utilities.ts
@@ -481,10 +481,10 @@ namespace ts {
481
return (<Identifier>name).text;
482
case SyntaxKind.StringLiteral:
483
case SyntaxKind.NumericLiteral:
484
- return (<LiteralExpression>name).text as UnderscoreEscapedString;
+ return escapeLeadingUnderscores((<LiteralExpression>name).text);
485
case SyntaxKind.ComputedPropertyName:
486
if (isStringOrNumericLiteral((<ComputedPropertyName>name).expression)) {
487
- return (<LiteralExpression>(<ComputedPropertyName>name).expression).text as UnderscoreEscapedString;
+ return escapeLeadingUnderscores((<LiteralExpression>(<ComputedPropertyName>name).expression).text);
488
}
489
490
0 commit comments