Index: test/mjsunit/string-split.js |
diff --git a/test/mjsunit/string-split.js b/test/mjsunit/string-split.js |
index efd0ef3eae3dc1e8843b33e69f7102e00dca4667..e9fc9804b9dbfbd84b5964d345c1ce0243063ea1 100644 |
--- a/test/mjsunit/string-split.js |
+++ b/test/mjsunit/string-split.js |
@@ -164,3 +164,11 @@ separator = { toString: function() { assertEquals(1, counter); |
assertEquals(["a", "c"], String.prototype.split.call(subject, separator)); |
assertEquals(2, counter); |
+ |
+// Check ToUint32 conversion of limit. |
+assertArrayEquals(["a"], "a,b,c,d,e,f".split(/,/, -4294967295)); |
+assertArrayEquals(["a"], "a,b,c,d,e,f".split(/,/, -4294967294.5)); |
+assertArrayEquals(["a", "b"], "a,b,c,d,e,f".split(/,/, -4294967294)); |
+assertArrayEquals(["a", "b", "c"], "a,b,c,d,e,f".split(/,/, -4294967293)); |
+assertArrayEquals(["a", "b", "c", "d"], "a,b,c,d,e,f".split(/,/, -4294967292)); |
+assertArrayEquals(["a", "b", "c", "d", "e", "f"], "a,b,c,d,e,f".split(/,/, -1)); |