zloirock/core-js

[RegExp] Match Indices

Open

#1,507 opened on Feb 5, 2026

 (2 comments) (0 reactions) (0 assignees)JavaScript (1,609 forks)batch import
enhancementhelp wanted

Repository metrics

Stars
 (23,771 stars)
PR merge metrics
 (PR metrics pending)

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