Closed
Bug 1207499
Opened 9 years ago
Closed 9 years ago
Remove use of expression closure from b2g/, chrome/, docshell/, mobile/, modules/, netwerk/, parser/, security/, storage/, testing/, webapprt/, widget/, xpcom/, and devtools/
Categories
(Firefox :: General, defect)
Firefox
General
Tracking
()
RESOLVED
FIXED
Firefox 44
Tracking | Status | |
---|---|---|
firefox44 | --- | fixed |
People
(Reporter: arai, Assigned: arai)
References
Details
Attachments
(14 files)
5.35 KB,
patch
|
sicking
:
review+
|
Details | Diff | Splinter Review |
1.11 KB,
patch
|
benjamin
:
review+
|
Details | Diff | Splinter Review |
1.16 KB,
patch
|
bzbarsky
:
review+
|
Details | Diff | Splinter Review |
5.18 KB,
patch
|
mfinkle
:
review+
|
Details | Diff | Splinter Review |
896 bytes,
patch
|
mwu
:
review+
|
Details | Diff | Splinter Review |
5.64 KB,
patch
|
jduell.mcbugs
:
review+
|
Details | Diff | Splinter Review |
1.82 KB,
patch
|
jst
:
review+
|
Details | Diff | Splinter Review |
1.41 KB,
patch
|
keeler
:
review+
|
Details | Diff | Splinter Review |
14.87 KB,
patch
|
mak
:
review+
|
Details | Diff | Splinter Review |
6.37 KB,
patch
|
jmaher
:
review+
|
Details | Diff | Splinter Review |
1.16 KB,
patch
|
Felipe
:
review+
|
Details | Diff | Splinter Review |
2.63 KB,
patch
|
roc
:
review+
|
Details | Diff | Splinter Review |
1.04 KB,
patch
|
froydnj
:
review+
|
Details | Diff | Splinter Review |
1.00 KB,
patch
|
pbro
:
review+
|
Details | Diff | Splinter Review |
Need to replace non-standard expression closure with one of: * function declaration * function expression * arrow function before fixing bug 1083458. converting rules are following: * function declaration add `return` and braces * standalone named function expression add `return` and braces * standalone anonymous function expression contans and receives `this` (Array.filter, bind, etc) convert to arrow function, and remove code passing |this| * standalone anonymous function expression contans no `this` convert to arrow function * property with anonymous function expression, contains `this` add `return` and braces * property with anonymous function expression, contains no `this`, short body convert to arrow function * property with anonymous function expression, contains no `this`, long body add `return` and braces * property with named function expression add `return` and braces * getter property add `return` and braces * setter property add braces Since there are a lot of patches, separated into 8 bugs, each bug corresponds to one of following directories: * browser/, except browser/components/. * browser/components/. * dom/. * layout/. * services/. * toolkit/, except toolkit/components/. * toolkit/components/. * b2g/, chrome/, docshell/, mobiles/, modules/, netwerk/, parser/, security/, storage/, testing/, webapprt/, widget/, xpcom/ (not yet touched addon-sdk) I have draft patches, will post them (may take some time to prepare and post).
Assignee | ||
Comment 1•9 years ago
|
||
Additional rule: * function expression, contains `arguments` add `return` and braces Almost green on try run: (with other patches, M(13) is not related) https://treeherder.mozilla.org/#/jobs?repo=try&revision=c844b363eef3
Summary: Remove use of expression closure from b2g/, chrome/, docshell/, mobiles/, modules/, netwerk/, parser/, security/, storage/, testing/, webapprt/, widget/, and xpcom/ → Remove use of expression closure from b2g/, chrome/, docshell/, mobile/, modules/, netwerk/, parser/, security/, storage/, testing/, webapprt/, widget/, xpcom/, and devtools/
Assignee | ||
Comment 2•9 years ago
|
||
Assignee: nobody → arai.unmht
Attachment #8667178 -
Flags: review?(jonas)
Assignee | ||
Comment 3•9 years ago
|
||
Attachment #8667179 -
Flags: review?(benjamin)
Assignee | ||
Comment 4•9 years ago
|
||
Attachment #8667180 -
Flags: review?(bzbarsky)
Assignee | ||
Comment 5•9 years ago
|
||
Attachment #8667181 -
Flags: review?(mark.finkle)
Assignee | ||
Comment 6•9 years ago
|
||
Attachment #8667183 -
Flags: review?(mwu)
Assignee | ||
Comment 7•9 years ago
|
||
Attachment #8667185 -
Flags: review?(jduell.mcbugs)
Assignee | ||
Comment 8•9 years ago
|
||
Attachment #8667186 -
Flags: review?(jst)
Assignee | ||
Comment 9•9 years ago
|
||
Attachment #8667188 -
Flags: review?(dkeeler)
Assignee | ||
Comment 10•9 years ago
|
||
Attachment #8667189 -
Flags: review?(mak77)
Assignee | ||
Comment 11•9 years ago
|
||
Attachment #8667190 -
Flags: review?(jmaher)
Assignee | ||
Comment 12•9 years ago
|
||
Attachment #8667192 -
Flags: review?(felipc)
Assignee | ||
Comment 13•9 years ago
|
||
Attachment #8667193 -
Flags: review?(roc)
Assignee | ||
Comment 14•9 years ago
|
||
Attachment #8667194 -
Flags: review?(nfroyd)
Assignee | ||
Comment 15•9 years ago
|
||
Attachment #8667195 -
Flags: review?(pbrosset)
Updated•9 years ago
|
Attachment #8667195 -
Flags: review?(pbrosset) → review+
Attachment #8667193 -
Flags: review?(roc) → review+
Updated•9 years ago
|
Attachment #8667194 -
Flags: review?(nfroyd) → review+
Updated•9 years ago
|
Attachment #8667179 -
Flags: review?(benjamin) → review+
Updated•9 years ago
|
Attachment #8667183 -
Flags: review?(mwu) → review+
Updated•9 years ago
|
Attachment #8667181 -
Flags: review?(mark.finkle) → review+
Comment 16•9 years ago
|
||
Comment on attachment 8667190 [details] [diff] [review] Part 10: Remove use of expression closure from testing/. Review of attachment 8667190 [details] [diff] [review]: ----------------------------------------------------------------- thanks for writing this!
Attachment #8667190 -
Flags: review?(jmaher) → review+
Attachment #8667188 -
Flags: review?(dkeeler) → review+
Updated•9 years ago
|
Attachment #8667192 -
Flags: review?(felipc) → review+
Comment 17•9 years ago
|
||
Comment on attachment 8667180 [details] [diff] [review] Part 3: Remove use of expression closure from docshell/. r=me
Attachment #8667180 -
Flags: review?(bzbarsky) → review+
Attachment #8667178 -
Flags: review?(jonas) → review+
Updated•9 years ago
|
Attachment #8667186 -
Flags: review?(jst) → review+
Updated•9 years ago
|
Attachment #8667185 -
Flags: review?(jduell.mcbugs) → review+
Updated•9 years ago
|
Attachment #8667189 -
Flags: review?(mak77) → review+
Comment 18•9 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/3e6465169e40 https://hg.mozilla.org/integration/mozilla-inbound/rev/4cd9898b3410 https://hg.mozilla.org/integration/mozilla-inbound/rev/4c0f8e4b15c8 https://hg.mozilla.org/integration/mozilla-inbound/rev/48898d8384d8 https://hg.mozilla.org/integration/mozilla-inbound/rev/31b39f0a34c1 https://hg.mozilla.org/integration/mozilla-inbound/rev/5e9d7516ce42 https://hg.mozilla.org/integration/mozilla-inbound/rev/63b57083408f https://hg.mozilla.org/integration/mozilla-inbound/rev/89469953a96a https://hg.mozilla.org/integration/mozilla-inbound/rev/d5b11364d743 https://hg.mozilla.org/integration/mozilla-inbound/rev/679b74f654b0 https://hg.mozilla.org/integration/mozilla-inbound/rev/56d7babc6147 https://hg.mozilla.org/integration/mozilla-inbound/rev/73d2fd0abd3f https://hg.mozilla.org/integration/mozilla-inbound/rev/056927c667ab https://hg.mozilla.org/integration/mozilla-inbound/rev/57ef7c720fda
Comment 19•9 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/3e6465169e40 https://hg.mozilla.org/mozilla-central/rev/4cd9898b3410 https://hg.mozilla.org/mozilla-central/rev/4c0f8e4b15c8 https://hg.mozilla.org/mozilla-central/rev/48898d8384d8 https://hg.mozilla.org/mozilla-central/rev/31b39f0a34c1 https://hg.mozilla.org/mozilla-central/rev/5e9d7516ce42 https://hg.mozilla.org/mozilla-central/rev/63b57083408f https://hg.mozilla.org/mozilla-central/rev/89469953a96a https://hg.mozilla.org/mozilla-central/rev/d5b11364d743 https://hg.mozilla.org/mozilla-central/rev/679b74f654b0 https://hg.mozilla.org/mozilla-central/rev/56d7babc6147 https://hg.mozilla.org/mozilla-central/rev/73d2fd0abd3f https://hg.mozilla.org/mozilla-central/rev/056927c667ab https://hg.mozilla.org/mozilla-central/rev/57ef7c720fda
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox44:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 44
You need to log in
before you can comment on or make changes to this bug.
Description
•