Skip to content

Commit

Permalink
In reScanSlashToken use charCodeChecked not codePointChecked (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
rbuckton authored May 31, 2024
1 parent 7f7ff92 commit 4c233f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/scanner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2558,7 +2558,7 @@ export function createScanner(languageVersion: ScriptTarget, skipTrivia: boolean
pos++;
let regExpFlags = RegularExpressionFlags.None;
while (true) {
const ch = codePointChecked(pos);
const ch = charCodeChecked(pos);
if (ch === CharacterCodes.EOF || !isIdentifierPart(ch, languageVersion)) {
break;
}
Expand Down

0 comments on commit 4c233f1

Please sign in to comment.