Baike.dev
All toolsAI codingTrendingOpen sourceNewsSubmit
Log in
Back to tool/Back to issues
#1507·core-js

[RegExp] Match Indices

Author: uufcCreated Feb 5, 2026Updated Mar 6, 2026
Labelsenhancementhelp wanted

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

Source: zloirock/core-js

View original on GitHubView discussion on GitHub