Files
ladybird/Libraries/LibJS
Linus Groh ad8abce8a5 LibJS: Let Array.prototype.map() resize new array before loop
Currently we would create an empty array of size 0 and appening results
of the callback function while skipping empty values.

This is incorrect, we should be initializing a full array of the correct
size beforehand and then inserting the results while still skipping
empty values.

Wrong: new Array(5).map(() => {}) // []
Right: new Array(5).map(() => {}) // [<empty> * 5]
2020-04-28 20:15:38 +02:00
..
2020-04-28 15:07:08 +02:00
2020-04-14 12:54:09 +02:00
2020-04-22 11:48:14 +02:00
2020-04-27 11:32:18 +02:00