Index: src/typedarray.js |
diff --git a/src/typedarray.js b/src/typedarray.js |
index 422dc4a03cba36b8a422b5913babaafe1c83bb06..7ac8f8fd71c819d923f9ba9c94c44b0efbca0132 100644 |
--- a/src/typedarray.js |
+++ b/src/typedarray.js |
@@ -306,7 +306,7 @@ function DataViewConstructor(buffer, byteOffset, byteLength) { // length = 3 |
if (!IS_ARRAYBUFFER(buffer)) { |
throw MakeTypeError('data_view_not_array_buffer', []); |
} |
- var bufferByteLength = %ArrayBufferGetByteLength(buffer); |
+ var bufferByteLength = buffer.byteLength; |
var offset = IS_UNDEFINED(byteOffset) ? |
0 : ToPositiveInteger(byteOffset, 'invalid_data_view_offset'); |
if (offset > bufferByteLength) { |