Skip to content

Commit 3383d8a

Browse files
committed
Add temp var
1 parent e99b679 commit 3383d8a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/compiler/utilities.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4018,7 +4018,8 @@ namespace ts {
40184018
* @returns The unescaped identifier text.
40194019
*/
40204020
export function unescapeLeadingUnderscores(identifier: UnderscoreEscapedString): string {
4021-
return (identifier as string).length >= 3 && (identifier as string).charCodeAt(0) === CharacterCodes._ && (identifier as string).charCodeAt(1) === CharacterCodes._ && (identifier as string).charCodeAt(2) === CharacterCodes._ ? (identifier as string).substr(1) : identifier as string;
4021+
const id = identifier as string;
4022+
return id.length >= 3 && id.charCodeAt(0) === CharacterCodes._ && id.charCodeAt(1) === CharacterCodes._ && id.charCodeAt(2) === CharacterCodes._ ? id.substr(1) : id;
40224023
}
40234024

40244025
/**

0 commit comments

Comments
 (0)