zloirock/core-js

[RegExp] Match Indices

Open

#1507 opened on Feb 5, 2026

View on GitHub
 (2 comments) (0 reactions) (0 assignees)JavaScript (23,771 stars) (1,609 forks)batch import
enhancementhelp wanted

Description

execute: const test = new RegExp('.', 'd'); output: Uncaught SyntaxError: Invalid flags supplied to RegExp constructor 'd' at new RegExp () at :1:14 (anonymous) @ VM524:1


https://github.com/tc39/proposal-regexp-match-indices

Contributor guide