Add TypedArray.from method
authordehrenberg <dehrenberg@chromium.org>
Mon, 18 May 2015 20:13:56 +0000 (13:13 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 18 May 2015 20:13:47 +0000 (20:13 +0000)
commitcc3f59db556efe4e31813326510730cccafe801b
tree0aa427c59a2f01cf3b7ff1a8379ef9c91d418bcf
parent8bc3dc0372283eaaadc20efeaf9909c3e493b2f7
Add TypedArray.from method

This function creates a new way to make TypedArrays based on existing
iterable or Array-like objects, analogous to Array.from. The patch
implements the function and adds tests.

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

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

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