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 function __f_17(__v_9) { |
| 6 for (var count = 0; count < 20000; ++count) { |
| 7 if (count < 100) { |
| 8 __v_9.push(3); |
| 9 } else if (count < 2500) { |
| 10 __v_9.push(2.5); |
| 11 } else { |
| 12 __v_9.push(true); |
| 13 } |
| 14 } |
| 15 return __v_9; |
| 16 } |
| 17 |
| 18 let a = __f_17([]); |
| 19 assertEquals(a[0], 3); |
| 20 assertEquals(a[10], 3); |
| 21 assertEquals(a[2499], 2.5); |
| 22 assertEquals(a[10000], true); |
OLD | NEW |