OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 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 let array = new Array(0xFFFFFFFF); |
| 6 let it = array.keys(); |
| 7 assertEquals({ value: 0, done: false }, it.next()); |
| 8 |
| 9 it = array.entries(); |
| 10 assertEquals({ value: [0, undefined], done: false }, it.next()); |
| 11 |
| 12 it = array[Symbol.iterator](); |
| 13 assertEquals({ value: undefined, done: false }, it.next()); |
OLD | NEW |