Chromium Code Reviews| Index: src/array.js |
| diff --git a/src/array.js b/src/array.js |
| index b6f3a89d698fee679b4ae1a6e9c5c2eb9d8da969..d9db77b2a48914fefe4585695404c1b8758f0d73 100644 |
| --- a/src/array.js |
| +++ b/src/array.js |
| @@ -286,7 +286,9 @@ function SimpleSlice(array, start_i, del_count, len, deleted_elements) { |
| // prototype. |
| var current = array[index]; |
| if (!IS_UNDEFINED(current) || index in array) { |
|
Michael Starzinger
2014/10/21 08:07:48
I know this is not part of your change, but the or
|
| - deleted_elements[i] = current; |
| + // The spec requires [[DefineOwnProperty]] here, %AddElement is close |
| + // enough (in that it ignores the prototype). |
| + %AddElement(deleted_elements, i, current, NONE); |
| } |
| } |
| } |