Index: src/typedarray.js |
diff --git a/src/typedarray.js b/src/typedarray.js |
index 13a9cfb8e8470b1ac528e4d242173c426bc49404..a7a6d877f2588ef2012f162b4117353e6ace3e7c 100644 |
--- a/src/typedarray.js |
+++ b/src/typedarray.js |
@@ -100,12 +100,8 @@ macro TYPED_ARRAY_CONSTRUCTOR(ARRAY_ID, NAME, ELEMENT_SIZE) |
throw MakeRangeError("invalid_typed_array_length"); |
} |
var byteLength = l * ELEMENT_SIZE; |
- if (byteLength > %_TypedArrayMaxSizeInHeap()) { |
- var buffer = new $ArrayBuffer(byteLength); |
- %_TypedArrayInitialize(obj, ARRAY_ID, buffer, 0, byteLength); |
- } else { |
- %_TypedArrayInitialize(obj, ARRAY_ID, null, 0, byteLength); |
- } |
+ var buffer = new $ArrayBuffer(byteLength); |
+ %_TypedArrayInitialize(obj, ARRAY_ID, buffer, 0, byteLength); |
} |
function NAMEConstructByArrayLike(obj, arrayLike) { |