Implement %TypedArray%.{lastI,i}ndexOf
authorDaniel Ehrenberg <dehrenberg@chromium.org>
Wed, 20 May 2015 01:09:21 +0000 (18:09 -0700)
committerAdam Klein <adamk@chromium.org>
Wed, 20 May 2015 01:09:05 +0000 (01:09 +0000)
commit31fb50247497b5d681792e7707b8a739aee6c736
tree5868dd2a04413b5920dc60288583bdc5062f55dc
parent540bb0c80beb66578c42e71378de81b40455a83a
Implement %TypedArray%.{lastI,i}ndexOf

This patch adds the two TypedArray methods indexOf and lastIndexOf,
which are similar to the methods on Arrays. Tests are ported from
arrays as well.

BUG=v8:3578
LOG=Y
R=arv@chromium.org

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

Patch from Daniel Ehrenberg <dehrenberg@chromium.org>.

Cr-Commit-Position: refs/heads/master@{#28495}
src/array.js
src/harmony-typedarray.js
test/mjsunit/harmony/typedarray-indexing.js [new file with mode: 0644]