mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-29 07:04:09 +08:00
exec on a regular expression held as an untyped value threw "Native RegExp method has no lowering". It now returns Node's match array: the captures, with undefined for one that did not participate, then index, input and groups, or null without a match. Global and sticky expressions read and advance lastIndex and reset it when nothing matches, as the typed exec does.