[Webkit-unassigned] [Bug 204067] New: RegExpBuiltinExec should create "groups" property unconditionally

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Nov 11 06:03:44 PST 2019


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

            Bug ID: 204067
           Summary: RegExpBuiltinExec should create "groups" property
                    unconditionally
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: All
                OS: All
            Status: NEW
          Severity: Minor
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: shvaikalesh at gmail.com

Test case:
  /\d/.exec("1").hasOwnProperty("groups")

Expected:
  true

Actual:
  false

Also, "groups" object should have `null` [[Prototype]].

Discussion: https://github.com/tc39/proposal-regexp-named-groups/issues/34
ECMA262: https://tc39.es/ecma262/#sec-regexpbuiltinexec (step 24)
Test262:
  https://test262.report/browse/built-ins/RegExp/named-groups/groups-object-undefined.js
  https://test262.report/browse/built-ins/RegExp/named-groups/groups-object.js

-- 
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/20191111/4676a196/attachment-0001.htm>


More information about the webkit-unassigned mailing list