WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
138191
Use plain JSArray for RegExp matches instead of a lazily populated custom object.
https://bugs.webkit.org/show_bug.cgi?id=138191
Summary
Use plain JSArray for RegExp matches instead of a lazily populated custom obj...
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
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Andreas Kling
Comment 1
2014-10-29 15:36:25 PDT
Created
attachment 240633
[details]
Patch
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.
Top of Page
Format For Printing
XML
Clone This Bug