[Webkit-unassigned] [Bug 176434] New: FIXME Bug: Add code if needed to throw Syntax errors for bad named capture references in String.prototype.replace
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Sep 5 18:07:26 PDT 2017
https://bugs.webkit.org/show_bug.cgi?id=176434
Bug ID: 176434
Summary: FIXME Bug: Add code if needed to throw Syntax errors
for bad named capture references in
String.prototype.replace
Product: WebKit
Version: Other
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: JavaScriptCore
Assignee: webkit-unassigned at lists.webkit.org
Reporter: msaboff at apple.com
The current proposed named capture groups spec text specifies that we should throw a Syntax Error when processing the replacement string to String.prototype.replace() if there are malformed named capture groups references. This would be the first type of malformed replacement string text that would cause a throw. It seems out of place with the rest of the rules for various $<token> replacements. We have file an issue against the current spec text at https://github.com/tc39/proposal-regexp-named-groups/issues/29. If we don't prevail, then we'll need to add the throw(SyntaxError, ...) code.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170906/6194aff7/attachment.html>
More information about the webkit-unassigned
mailing list