Index: test/mjsunit/harmony/typedarrays.js |
diff --git a/test/mjsunit/harmony/typedarrays.js b/test/mjsunit/harmony/typedarrays.js |
index c868d114462f7dae8bdd2419dc76dd65699b3a9a..21c6054072a8f4875af75c9b34120133ff369285 100644 |
--- a/test/mjsunit/harmony/typedarrays.js |
+++ b/test/mjsunit/harmony/typedarrays.js |
@@ -192,6 +192,9 @@ function TestTypedArray(proto, elementSize, typicalElement) { |
} |
assertThrows(function () { new proto(ab, 256*elementSize); }, RangeError); |
+ assertThrows( |
+ function () { new proto(ab, 128*elementSize, 192); }, |
+ RangeError); |
if (elementSize !== 1) { |
assertThrows(function() { new proto(ab, 128*elementSize - 1, 10); }, |