[Webkit-unassigned] [Bug 248809] New: Inconsistent output compared with other JS engines when using RegExp.prototype.exec()

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Dec 5 22:59:46 PST 2022


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

            Bug ID: 248809
           Summary: Inconsistent output compared with other JS engines
                    when using RegExp.prototype.exec()
           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: liyeting at iie.ac.cn

Hello,

The code below does not have the same behavior as other engines (e.g., V8 in Google Chrome and SpiderMonkey in Firefox).

var regex=/([A-z]?\w{0,7})+(?:\1)/
console.log(regex.exec("DzVoQoowXSmB5QNFySmB5QNFy"))

In JavaScriptCore, the output is
null

However, in V8 and SpiderMonkey, output is
["DzVoQoowXSmB5QNFySmB5QNFy", "SmB5QNFy"]



Best,
Yeting Li

-- 
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/20221206/9cdb0703/attachment.htm>


More information about the webkit-unassigned mailing list