WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
158330
Web Inspector: Modernize Array.prototype.every/some callsites to arrow functions
https://bugs.webkit.org/show_bug.cgi?id=158330
Summary
Web Inspector: Modernize Array.prototype.every/some callsites to arrow functions
Joseph Pecoraro
Reported
2016-06-02 17:21:38 PDT
* SUMMARY Modernize Array.prototype.every/some callsites to arrow functions. This patch addresses cases of: - Array.prototype.every - Array.prototype.some Before: return this._items.filter(function(item) { return item.selected; }); After: return this._items.filter((item) => item.selected); Things to watch out for: - These Array methods may take an optional `this` object. Arrow functions may override that.
Attachments
[PATCH] Proposed Fix
(12.78 KB, patch)
2016-06-02 17:22 PDT
,
Joseph Pecoraro
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Joseph Pecoraro
Comment 1
2016-06-02 17:22:17 PDT
Created
attachment 280389
[details]
[PATCH] Proposed Fix
Blaze Burg
Comment 2
2016-06-02 17:55:06 PDT
Comment on
attachment 280389
[details]
[PATCH] Proposed Fix r=me
WebKit Commit Bot
Comment 3
2016-06-02 18:17:39 PDT
Comment on
attachment 280389
[details]
[PATCH] Proposed Fix Clearing flags on attachment: 280389 Committed
r201630
: <
http://trac.webkit.org/changeset/201630
>
WebKit Commit Bot
Comment 4
2016-06-02 18:17:43 PDT
All reviewed patches have been landed. Closing bug.
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