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 // Flags: --allow-natives-syntax |
| 6 |
| 7 [1].push(1); |
| 8 |
| 9 (function PushHoleBitPattern() { |
| 10 function g(src, dst, i) { |
| 11 dst[i] = src[i]; |
| 12 } |
| 13 |
| 14 var b = new ArrayBuffer(8); |
| 15 var i32 = new Int32Array(b); |
| 16 i32[0] = 0xFFF7FFFF; |
| 17 i32[1] = 0xFFF7FFFF; |
| 18 var f64 = new Float64Array(b); |
| 19 |
| 20 var a = [,2.5]; |
| 21 a.push(f64[0]); |
| 22 assertTrue(Number.isNaN(a[2])); |
| 23 })(); |
OLD | NEW |