[Webkit-unassigned] [Bug 189407] New: Test262 failure with Named Capture Groups - using a reference before the group is defined

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Sep 7 09:03:50 PDT 2018


https://bugs.webkit.org/show_bug.cgi?id=189407

            Bug ID: 189407
           Summary: Test262 failure with Named Capture Groups - using a
                    reference before the group is defined
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: msaboff at apple.com

This Test262 test is failing - JSTests/test262/test/built-ins/RegExp/named-groups/unicode-references.js
Exception: SyntaxError: Invalid regular expression: invalid backreference for unicode pattern
at JSTests/test262/test/built-ins/RegExp/named-groups/unicode-references.js:33

The line in question is:
  assert(compareArray(["bab", "b"], "bab".match(/\k<a>(?<a>b)\w\k<a>/u)));

Here the first reference of the named group “a” is being used before the referenced is defined.  This is allowed by the spec and should match the empty string.

-- 
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/20180907/e07bb962/attachment.html>


More information about the webkit-unassigned mailing list