Index: test/mjsunit/array-slice.js |
diff --git a/test/mjsunit/array-slice.js b/test/mjsunit/array-slice.js |
index c993a077f6696c0a3a41c60c9eab6a424688b229..30e9f3e9eee31d2c1d99ce884c79c1d9340d837b 100644 |
--- a/test/mjsunit/array-slice.js |
+++ b/test/mjsunit/array-slice.js |
@@ -36,6 +36,17 @@ |
})(); |
+// Check various variants of empty array's slicing. |
+(function() { |
+ for (var i = 0; i < 7; i++) { |
+ assertEquals([], [].slice(0, 0)); |
+ assertEquals([], [].slice(1, 0)); |
+ assertEquals([], [].slice(0, 1)); |
+ assertEquals([], [].slice(-1, 0)); |
+ } |
+})(); |
+ |
+ |
// Check various forms of arguments omission. |
(function() { |
var array = new Array(7); |