| Index: src/typedarray.js
|
| diff --git a/src/typedarray.js b/src/typedarray.js
|
| index e86c86cb880c8bbb2f5b49e0d3be84370b121c5e..d0ef70a02eda97c9aac666661a53bb2043aa6a7d 100644
|
| --- a/src/typedarray.js
|
| +++ b/src/typedarray.js
|
| @@ -152,7 +152,7 @@ macro TYPED_ARRAY_CONSTRUCTOR(ARRAY_ID, NAME, ELEMENT_SIZE)
|
| throw MakeTypeError('incompatible_method_receiver',
|
| ["NAME.byteLength", this]);
|
| }
|
| - return %_ArrayBufferViewGetByteLength(this);
|
| + return %_TypedArrayGetByteLength(this);
|
| }
|
|
|
| function NAME_GetByteOffset() {
|
| @@ -160,7 +160,7 @@ macro TYPED_ARRAY_CONSTRUCTOR(ARRAY_ID, NAME, ELEMENT_SIZE)
|
| throw MakeTypeError('incompatible_method_receiver',
|
| ["NAME.byteOffset", this]);
|
| }
|
| - return %_ArrayBufferViewGetByteOffset(this);
|
| + return %_TypedArrayGetByteOffset(this);
|
| }
|
|
|
| function NAME_GetLength() {
|
| @@ -201,7 +201,7 @@ macro TYPED_ARRAY_CONSTRUCTOR(ARRAY_ID, NAME, ELEMENT_SIZE)
|
| }
|
| var newLength = endInt - beginInt;
|
| var beginByteOffset =
|
| - %_ArrayBufferViewGetByteOffset(this) + beginInt * ELEMENT_SIZE;
|
| + %_TypedArrayGetByteOffset(this) + beginInt * ELEMENT_SIZE;
|
| return new $NAME(%TypedArrayGetBuffer(this),
|
| beginByteOffset, newLength);
|
| }
|
| @@ -393,7 +393,7 @@ function DataViewGetByteOffset() {
|
| throw MakeTypeError('incompatible_method_receiver',
|
| ['DataView.byteOffset', this]);
|
| }
|
| - return %_ArrayBufferViewGetByteOffset(this);
|
| + return %_DataViewGetByteOffset(this);
|
| }
|
|
|
| function DataViewGetByteLength() {
|
| @@ -401,7 +401,7 @@ function DataViewGetByteLength() {
|
| throw MakeTypeError('incompatible_method_receiver',
|
| ['DataView.byteLength', this]);
|
| }
|
| - return %_ArrayBufferViewGetByteLength(this);
|
| + return %_DataViewGetByteLength(this);
|
| }
|
|
|
| macro DATA_VIEW_TYPES(FUNCTION)
|
|
|