Test that TypedArray methods don't read length
authordehrenberg <dehrenberg@chromium.org>
Fri, 15 May 2015 02:03:47 +0000 (19:03 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 15 May 2015 02:03:44 +0000 (02:03 +0000)
commit85c91f639e6779b1e5b19b1766bc64ccbe9f00dc
tree61ed2570e315167a1e99632633a6569308f98d22
parent96ab3dce5dd3a573c65b60eab0da55c344c4b6d8
Test that TypedArray methods don't read length

ES6 specifies that methods on TypedArrays reference an internal length
slot, rather than their length property. This patch tests that for the
TypedArray methods that exist currently.

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

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

Cr-Commit-Position: refs/heads/master@{#28409}
test/mjsunit/harmony/typedarray-fill.js
test/mjsunit/harmony/typedarray-find.js
test/mjsunit/harmony/typedarray-findindex.js
test/mjsunit/harmony/typedarrays-every.js
test/mjsunit/harmony/typedarrays-foreach.js