Bug 138191 - Use plain JSArray for RegExp matches instead of a lazily populated custom object.
Summary: Use plain JSArray for RegExp matches instead of a lazily populated custom obj...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Andreas Kling
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-29 15:30 PDT by Andreas Kling
Modified: 2014-10-30 05:09 PDT (History)
6 users (show)

See Also:


Attachments
Patch (23.86 KB, patch)
2014-10-29 15:36 PDT, Andreas Kling
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Kling 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.
Comment 1 Andreas Kling 2014-10-29 15:36:25 PDT
Created attachment 240633 [details]
Patch
Comment 2 Geoffrey Garen 2014-10-29 17:18:36 PDT
Comment on attachment 240633 [details]
Patch

Bokay.
Comment 3 WebKit Commit Bot 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>
Comment 4 WebKit Commit Bot 2014-10-29 20:54:24 PDT
All reviewed patches have been landed.  Closing bug.
Comment 5 Csaba Osztrogonác 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)