Index: test/mjsunit/harmony/typedarrays.js |
diff --git a/test/mjsunit/harmony/typedarrays.js b/test/mjsunit/harmony/typedarrays.js |
index e1b0e653d602e8fde9094ab8656d5fc476b39a25..99364c8101757a2b3b178807e3a88e22664adbd4 100644 |
--- a/test/mjsunit/harmony/typedarrays.js |
+++ b/test/mjsunit/harmony/typedarrays.js |
@@ -219,7 +219,6 @@ function TestTypedArray(proto, elementSize, typicalElement) { |
assertThrows(function() { new proto(unalignedArrayBuffer)}, RangeError); |
assertThrows(function() { new proto(unalignedArrayBuffer, 5*elementSize)}, |
RangeError); |
- assertThrows(function() { new proto() }, TypeError); |
} |
var aFromString = new proto("30"); |
@@ -250,6 +249,12 @@ function TestTypedArray(proto, elementSize, typicalElement) { |
assertSame(0, aOverAbLen0.length); |
assertSame(0, aOverAbLen0.byteLength); |
assertSame(0, aOverAbLen0.byteOffset); |
+ |
+ var aNoParam = new proto(); |
+ assertSame(elementSize, aNoParam.BYTES_PER_ELEMENT); |
+ assertSame(0, aNoParam.length); |
+ assertSame(0, aNoParam.byteLength); |
+ assertSame(0, aNoParam.byteOffset); |
} |
TestTypedArray(Uint8Array, 1, 0xFF); |