Bug 138191

Summary: Use plain JSArray for RegExp matches instead of a lazily populated custom object.
Product: WebKit Reporter: Andreas Kling <kling>
Component: JavaScriptCoreAssignee: Andreas Kling <kling>
Status: RESOLVED FIXED    
Severity: Normal CC: buildbot, commit-queue, ggaren, msaboff, ossy, rniwa
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Andreas Kling
Reported 2014-10-29 15:30:19 PDT
We're already offering two RegExp matching APIs, one that collects subpattern matches (exec), and one that simply tests for a match (test). Given that, it was pretty overkill to lazily populate the resulting array of matches, since the user could simply use test() if they didn't need them.
Attachments
Patch (23.86 KB, patch)
2014-10-29 15:36 PDT, Andreas Kling
no flags
Andreas Kling
Comment 1 2014-10-29 15:36:25 PDT
Geoffrey Garen
Comment 2 2014-10-29 17:18:36 PDT
Comment on attachment 240633 [details] Patch Bokay.
WebKit Commit Bot
Comment 3 2014-10-29 20:54:21 PDT
Comment on attachment 240633 [details] Patch Clearing flags on attachment: 240633 Committed r175365: <http://trac.webkit.org/changeset/175365>
WebKit Commit Bot
Comment 4 2014-10-29 20:54:24 PDT
All reviewed patches have been landed. Closing bug.
Csaba Osztrogonác
Comment 5 2014-10-30 05:09:53 PDT
(In reply to comment #3) > Comment on attachment 240633 [details] > Patch > > Clearing flags on attachment: 240633 > > Committed r175365: <http://trac.webkit.org/changeset/175365> It made 41 JSC test fail on Apple's debug bots. (32 and 64 bit too)
Note You need to log in before you can comment on or make changes to this bug.