| Index: test/mjsunit/array-slice.js
|
| diff --git a/test/mjsunit/array-slice.js b/test/mjsunit/array-slice.js
|
| index 5ae31dc5278ec4c90a4166f91030874c8c06663c..ae0e3bc1ef6fb4793866ce490d951952c0198097 100644
|
| --- a/test/mjsunit/array-slice.js
|
| +++ b/test/mjsunit/array-slice.js
|
| @@ -290,3 +290,15 @@
|
|
|
| func('a', 'b', 'c');
|
| })();
|
| +
|
| +// Check slicing of holey objects with elements in the prototype
|
| +(function() {
|
| + function f() {
|
| + delete arguments[1];
|
| + arguments.__proto__[1] = 5;
|
| + var result = Array.prototype.slice.call(arguments);
|
| + delete arguments.__proto__[1];
|
| + assertEquals([1,5,3], result);
|
| + }
|
| + f(1,2,3);
|
| +})();
|
|
|