zloirock/core-js

[RegExp] Match Indices

Open

#1507 aperta il 5 feb 2026

Vedi su GitHub
 (2 commenti) (0 reazioni) (0 assegnatari)JavaScript (1609 fork)batch import
enhancementhelp wanted

Metriche repository

Star
 (23.771 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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

Guida contributor