Array.prototype.find and findIndex should skip holes
https://bugs.webkit.org/show_bug.cgi?id=132658
Reviewed by Geoffrey Garen.
Source/JavaScriptCore:
Skip holes in the array when iterating such that callback isn't called.
* builtins/Array.prototype.js:
(find):
(findIndex):
LayoutTests:
* js/array-find-expected.txt:
* js/array-findIndex-expected.txt:
* js/script-tests/array-find.js:
* js/script-tests/array-findIndex.js:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@169162
268f45cc-cd09-0410-ab3c-
d52691b4dbfc