Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Improve Recovery of Unterminated Regular Expressions #58289

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
May 24, 2024
Prev Previous commit
Next Next commit
I’m very wrong
  • Loading branch information
graphemecluster committed Apr 25, 2024
commit 978e1959ce163203746b360b83d933a2043f8e10
2 changes: 1 addition & 1 deletion src/compiler/scanner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2542,7 +2542,7 @@ export function createScanner(languageVersion: ScriptTarget, skipTrivia: boolean
/** @see {scanClassSetExpression} */
let mayContainStrings = false;

/** The number of numeric (anonymous) capturing groups defined in the regex. */
/** The number of all (named and unnamed) capturing groups defined in the regex. */
let numberOfCapturingGroups = 0;
/** All named capturing groups defined in the regex. */
const groupSpecifiers = new Set<string>();
Expand Down