Remove Javascript Array generics in Thunderbird
Categories
(MailNews Core :: Backend, enhancement)
Tracking
(Not tracked)
People
(Reporter: aceman, Assigned: aceman)
References
Details
Attachments
(1 file, 1 obsolete file)
|
6.02 KB,
patch
|
mkmelin
:
review+
|
Details | Diff | Splinter Review |
+++ This bug was initially created as a clone of Bug #1322124 +++
From bug 1222547 comment 0:
Array generics are non-standard SpiderMonkey extension and they should be removed.
- Array.concat
- Array.every
- Array.filter
- Array.forEach
- Array.indexOf
- Array.join
- Array.lastIndexOf
- Array.map
- Array.pop
- Array.push
- Array.reduce
- Array.reduceRight
- Array.reverse
- Array.shift
- Array.slice
- Array.some
- Array.sort
- Array.splice
- Array.unshift
A few remaining users after bug 1322124.
Changes done using patterns from https://hg.mozilla.org/comm-central/rev/0459647f3dc7 .
Comment 2•7 years ago
|
||
Nice simplifications, thanks.
Comment 4•7 years ago
|
||
Updated•7 years ago
|
Updated•7 years ago
|
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/1ff36478a185
remove remaining Array generics in Thunderbird. r=mkmelin DONTBUILD
Updated•7 years ago
|
Comment 6•7 years ago
|
||
What about:
JavaScript warning: chrome://global/content/bindings/tabbox.xml, line 258: Array.indexOf is deprecated; use Array.prototype.indexOf instead
I would kill that if .indexOf() is in our code, but that looks like m-c? They still have to sweep their stuff.
Comment 8•7 years ago
|
||
Sorry, "global", yes, M-C.
Description
•