Matthew Olsson
4c48c9d69d
LibJS: Reorganize tests into subfolders
2020-07-03 19:30:13 +02:00
Linus Groh
3152559422
LibJS: Call Array.prototype.findIndex() callback for empty elements
...
If the array value at the current index is empty, the callback will
be called with undefined as value.
2020-04-28 20:15:38 +02:00
Linus Groh
823cc7bc1c
LibJS: Call Array.prototype.find() callback for empty elements
...
If the array value at the current index is empty, the callback will
be called with undefined as value.
2020-04-28 20:15:38 +02:00
Linus Groh
c14fedd562
LibJS: Add bounds check to Array.prototype.{find,findIndex}
...
The number of iterations is limited to the initial array size, but we
still need to check if the array did shrink since then before accessing
each element.
Fixes #1992 .
2020-04-28 13:08:19 +02:00