Index: test/mjsunit/array-slice.js |
diff --git a/test/mjsunit/array-slice.js b/test/mjsunit/array-slice.js |
index 8f9ce5358622bb83a5b9c402f360194373df789c..50b5b273064d731523414c03d6d1cd9609e687dd 100644 |
--- a/test/mjsunit/array-slice.js |
+++ b/test/mjsunit/array-slice.js |
@@ -218,3 +218,16 @@ |
assertTrue(delete Array.prototype[5]); |
} |
})(); |
+ |
+// Check slicing on arguments object. |
+(function() { |
+ function func(expected, a0, a1, a2) { |
+ assertEquals(expected, Array.prototype.slice.call(arguments, 1)); |
+ } |
+ |
+ func([]); |
+ func(['a'], 'a'); |
+ func(['a', 1], 'a', 1); |
+ func(['a', 1, undefined], 'a', 1, undefined); |
+ func(['a', 1, undefined, void(0)], 'a', 1, undefined, void(0)); |
+})(); |