Add BYTES_PER_ELEMENT property to constructors of typed arrays.
authordslomov@chromium.org <dslomov@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 17 Jul 2013 11:16:07 +0000 (11:16 +0000)
committerdslomov@chromium.org <dslomov@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 17 Jul 2013 11:16:07 +0000 (11:16 +0000)
commit517cbe4dd3efa6292a7ba0078c02f992ce632be4
tree55f4394fd2592f719baded4536e0a4d617801b72
parenta6087dae801142aa89a2ae0be284bb7ae8c8f57d
Add BYTES_PER_ELEMENT property to constructors of typed arrays.

ES6 does not prescribe it, but both Blink and Firefox have it.

Also does a small rename of parameter in test.

R=bmeurer@chromium.org

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@15712 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/typedarray.js
test/mjsunit/harmony/typedarrays.js