Closed Bug 1222547 Opened 6 years ago Closed 2 years ago
Remove Array generics
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
Posted the site compatibility doc: https://www.fxsitecompat.com/en-US/docs/2015/array-string-generics-will-be-removed/
We should probably add telemetry and then warnings.
Some of them should be used frequently (like, Array.slice, Array.forEach), and some other won't be. searching AMO repository might give us some data. not sure if it worth getting telemetry for each function tho.
What about Array.from() and Array.isArray() ? Does this bug mean anything starting with Array. or only the specific listed methods?
Array.from and Array.isArray (and Array.of) are in spec. this bug is about non-standard static methods listed in comment #0.
Depends on: 1322124
You need to log in before you can comment on or make changes to this bug.