[es6] Array.prototype.find and findIndex should include holes
authorarv <arv@chromium.org>
Fri, 5 Jun 2015 14:18:01 +0000 (07:18 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 5 Jun 2015 14:18:20 +0000 (14:18 +0000)
commitd269e22de93efa6abc45c386939fdec44ffe9fdf
tree5d71f0e14639b296d48e519a6735ac179b4784a3
parenta6f23850a5106931c4e73e8ce0f339ec917b36a5
[es6] Array.prototype.find and findIndex should include holes

We should not skip holes for these 2 functions.

BUG=v8:3895
LOG=N
R=adamk

Review URL: https://codereview.chromium.org/1165003005

Cr-Commit-Position: refs/heads/master@{#28814}
src/harmony-array.js
test/mjsunit/harmony/array-find.js
test/mjsunit/harmony/array-findindex.js
test/test262-es6/test262-es6.status