Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Issue 4884233277407232: Issue 2257 - Replaced non-standard function expressions with ES6 arrow functions (Closed)

Created:
April 1, 2015, 2:24 p.m. by Sebastian Noack
Modified:
June 3, 2015, 3:44 p.m.
Visibility:
Public.

Description

Issue 2257 - Replaced non-standard function expressions with ES6 arrow functions

Patch Set 1 #

Patch Set 2 : 2nd argument to Utils.runAsync isn't necessary with arrow functions #

Total comments: 3

Patch Set 3 : Fixed issue mistakenly passing the wrong object to checkboxUpdated() #

Patch Set 4 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -56 lines) Patch
M chrome/content/ui/composer.js View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/content/ui/filters-backup.js View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/content/ui/filters-filteractions.js View 8 chunks +13 lines, -13 lines 0 comments Download
M chrome/content/ui/filters-filterview.js View 2 chunks +17 lines, -17 lines 0 comments Download
M chrome/content/ui/filters-search.js View 1 chunk +1 line, -1 line 0 comments Download
M chrome/content/ui/filters-subscriptionactions.js View 1 chunk +1 line, -1 line 0 comments Download
M chrome/content/ui/filters-subscriptionview.js View 1 2 3 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/content/ui/flasher.js View 1 chunk +1 line, -1 line 0 comments Download
M chrome/content/ui/sendReport.js View 4 chunks +4 lines, -4 lines 0 comments Download
M chrome/content/ui/sidebar.js View 7 chunks +8 lines, -8 lines 0 comments Download
M chrome/content/ui/subscriptionSelection.js View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 10
Sebastian Noack
April 1, 2015, 2:24 p.m. (2015-04-01 14:24:56 UTC) #1
tschuster
Rest looks good to me. http://codereview.adblockplus.org/4884233277407232/diff/5724160613416960/chrome/content/ui/composer.js File chrome/content/ui/composer.js (right): http://codereview.adblockplus.org/4884233277407232/diff/5724160613416960/chrome/content/ui/composer.js#newcode165 chrome/content/ui/composer.js:165: typeNode.addEventListener("command", () => checkboxUpdated(this), ...
April 13, 2015, 10:12 a.m. (2015-04-13 10:12:04 UTC) #2
tschuster
http://codereview.adblockplus.org/4884233277407232/diff/5724160613416960/chrome/content/ui/sidebar.js File chrome/content/ui/sidebar.js (right): http://codereview.adblockplus.org/4884233277407232/diff/5724160613416960/chrome/content/ui/sidebar.js#newcode555 chrome/content/ui/sidebar.js:555: let domains = match[1].split("|").filter(d => d != domain && ...
April 13, 2015, 10:13 a.m. (2015-04-13 10:13:14 UTC) #3
Sebastian Noack
http://codereview.adblockplus.org/4884233277407232/diff/5724160613416960/chrome/content/ui/composer.js File chrome/content/ui/composer.js (right): http://codereview.adblockplus.org/4884233277407232/diff/5724160613416960/chrome/content/ui/composer.js#newcode165 chrome/content/ui/composer.js:165: typeNode.addEventListener("command", () => checkboxUpdated(this), false); On 2015/04/13 10:12:04, tschuster ...
April 13, 2015, 10:22 a.m. (2015-04-13 10:22:03 UTC) #4
tschuster
On 2015/04/13 10:22:03, Sebastian Noack wrote: > http://codereview.adblockplus.org/4884233277407232/diff/5724160613416960/chrome/content/ui/composer.js > File chrome/content/ui/composer.js (right): > > http://codereview.adblockplus.org/4884233277407232/diff/5724160613416960/chrome/content/ui/composer.js#newcode165 ...
April 13, 2015, 11:29 a.m. (2015-04-13 11:29:22 UTC) #5
Wladimir Palant
While this change does look good, please make sure that each code path you changed ...
April 13, 2015, 10:05 p.m. (2015-04-13 22:05:05 UTC) #6
tschuster
On 2015/04/13 22:05:05, Wladimir Palant wrote: > While this change does look good, please make ...
April 14, 2015, 9:51 a.m. (2015-04-14 09:51:00 UTC) #7
Wladimir Palant
On 2015/04/14 09:51:00, tschuster wrote: > Unless something inside the arrow function is using |this|, ...
April 14, 2015, 12:49 p.m. (2015-04-14 12:49:29 UTC) #8
tschuster
On 2015/04/14 12:49:29, Wladimir Palant wrote: > On 2015/04/14 09:51:00, tschuster wrote: > > Unless ...
May 6, 2015, 10:12 a.m. (2015-05-06 10:12:32 UTC) #9
Sebastian Noack
May 6, 2015, 10:54 a.m. (2015-05-06 10:54:26 UTC) #10
On 2015/05/06 10:12:32, tschuster wrote:
> On 2015/04/14 12:49:29, Wladimir Palant wrote:
> > On 2015/04/14 09:51:00, tschuster wrote:
> > > Unless something inside the arrow function is using |this|, I can't
imagine
> > any
> > > scenario where replacing function expressions would somehow change
behavior.
> > 
> > Sure. But guess how often it happens that a seemingly trivial change breaks
> > something ;)
> 
> I will ping this bug again before Firefox starts showing a warning for it:
> https://bugzilla.mozilla.org/show_bug.cgi?id=995610

Thanks for the reminder. I just rebased the patch. But the problem is still that
most code paths this patch touches haven't been tested yet. And testing all of
them is quite some work. Feel free to help testing those.

Powered by Google App Engine
This is Rietveld