Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Merge branch 'main' into regex-non-bmp-flags
Use `codePointChecked` instead of `charCodeChecked` in `reScanSlashToken`
  • Loading branch information
graphemecluster committed May 31, 2024
commit 15783d6bd1229d6614aca5f045ca052064e53ed9
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 = charCodeChecked(pos);
const ch = codePointChecked(pos);
if (ch === CharacterCodes.EOF || !isIdentifierPart(ch, languageVersion)) {
break;
}
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.