Index: test/mjsunit/harmony/string-repeat.js |
diff --git a/test/mjsunit/harmony/string-repeat.js b/test/mjsunit/harmony/string-repeat.js |
index 761089b1d03a45ef91c0dcf6aad8cee7a0f1095d..0af74483a0bbe58afd7aa25322eb3cec890ab4da 100644 |
--- a/test/mjsunit/harmony/string-repeat.js |
+++ b/test/mjsunit/harmony/string-repeat.js |
@@ -61,8 +61,11 @@ assertEquals("", "".repeat(5)); |
assertEquals("", "abc".repeat(0)); |
assertEquals("abcabc", "abc".repeat(2.0)); |
+assertEquals("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "a".repeat(37)); |
assertThrows('"a".repeat(-1)', RangeError); |
assertThrows('"a".repeat(Number.POSITIVE_INFINITY)', RangeError); |
+assertThrows('"a".repeat(Math.pow(2, 30))', RangeError); |
+assertThrows('"a".repeat(Math.pow(2, 40))', RangeError); |
var myobj = { |
toString: function() { |