Ben Murdoch | 014dc51 | 2016-03-22 12:00:34 +0000 | [diff] [blame] | 1 | // Copyright 2015 the V8 project authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | // ES6 specifically says that elements should be checked with [[HasElement]] before |
| 6 | // [[Get]]. This is observable in case a getter deletes elements. ES5 put the |
| 7 | // [[HasElement]] after the [[Get]]. |
| 8 | |
| 9 | assertTrue(1 in Array.prototype.reverse.call( |
| 10 | {length:2, get 0(){delete this[0];}, 1: "b"})) |