Skip to content

Commit 4c233f1

Browse files
authored
In reScanSlashToken use charCodeChecked not codePointChecked (#58727)
1 parent 7f7ff92 commit 4c233f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/scanner.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2558,7 +2558,7 @@ export function createScanner(languageVersion: ScriptTarget, skipTrivia: boolean
25582558
pos++;
25592559
let regExpFlags = RegularExpressionFlags.None;
25602560
while (true) {
2561-
const ch = codePointChecked(pos);
2561+
const ch = charCodeChecked(pos);
25622562
if (ch === CharacterCodes.EOF || !isIdentifierPart(ch, languageVersion)) {
25632563
break;
25642564
}

0 commit comments

Comments
 (0)