Index: test/mjsunit/array-splice.js |
diff --git a/test/mjsunit/array-splice.js b/test/mjsunit/array-splice.js |
index 6501ba4e8572e7d88997ec74d07d9614dbd68e5c..bd471eceb6e9f25c3d6a5b4d8701cc68651cf7fb 100644 |
--- a/test/mjsunit/array-splice.js |
+++ b/test/mjsunit/array-splice.js |
@@ -42,6 +42,17 @@ |
})(); |
+// Check various variants of empty array's splicing. |
+(function() { |
+ for (var i = 0; i < 7; i++) { |
+ assertEquals([], [].splice(0, 0)); |
+ assertEquals([], [].splice(1, 0)); |
+ assertEquals([], [].splice(0, 1)); |
+ assertEquals([], [].splice(-1, 0)); |
+ } |
+})(); |
+ |
+ |
// Check various forms of arguments omission. |
(function() { |
var array; |