Description[regexp] Throw on invalid capture group names in replacer string
References to invalid names (i.e. not specified as a named group in the
pattern) throw a SyntaxError. Unmatched groups are still replaced by the
empty string.
See https://github.com/tc39/proposal-regexp-named-groups/issues/14.
BUG=v8:5437
Review-Url: https://codereview.chromium.org/2791183002
Cr-Commit-Position: refs/heads/master@{#44471}
Committed: https://chromium.googlesource.com/v8/v8/+/1329d15e99096559a41ac7cb49fbd0199607a5d2
Patch Set 1 #
Total comments: 1
Patch Set 2 : Typo #
Messages
Total messages: 14 (10 generated)
|