WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
149333
Web Inspector: Simplify some functional callbacks
https://bugs.webkit.org/show_bug.cgi?id=149333
Summary
Web Inspector: Simplify some functional callbacks
Joseph Pecoraro
Reported
2015-09-17 21:23:10 PDT
* SUMMARY Simplify some functional callbacks. We have a few cases of: arr.map( (x) => { return foo(x) } ) Which can just be: arr.map(foo)
Attachments
[PATCH] Proposed Fix
(7.26 KB, patch)
2015-09-17 21:50 PDT
,
Joseph Pecoraro
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Joseph Pecoraro
Comment 1
2015-09-17 21:50:56 PDT
Created
attachment 261487
[details]
[PATCH] Proposed Fix
Blaze Burg
Comment 2
2015-09-17 22:18:02 PDT
Comment on
attachment 261487
[details]
[PATCH] Proposed Fix r=me I did not know you could Array.map a constructor, but i guess it works!
WebKit Commit Bot
Comment 3
2015-09-17 23:04:56 PDT
Comment on
attachment 261487
[details]
[PATCH] Proposed Fix Clearing flags on attachment: 261487 Committed
r189965
: <
http://trac.webkit.org/changeset/189965
>
WebKit Commit Bot
Comment 4
2015-09-17 23:05:00 PDT
All reviewed patches have been landed. Closing bug.
Joseph Pecoraro
Comment 5
2015-09-18 00:36:02 PDT
> I did not know you could Array.map a constructor
To be clear, none of these were replacing calls to constructors. They happened to be functions that took in an argument and returned a value. `Number`, `isNaN`, `WebInspector.Foo.fromProtocol`. Number is just weird in that it can be used with `new` but is even better when used without it =).
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