OLD | NEW |
---|---|
(Empty) | |
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 // Flags: --allow-natives-syntax | |
6 | |
7 var a = new Int32Array(100); | |
8 a.__proto__ = null; | |
9 | |
10 function get(a) { | |
11 return a.length; | |
Dmitry Lomov (no reviews)
2015/03/27 13:22:18
Could you add tests for other properties as well?
| |
12 } | |
13 | |
14 assertEquals(undefined, get(a)); | |
15 assertEquals(undefined, get(a)); | |
16 assertEquals(undefined, get(a)); | |
17 %OptimizeFunctionOnNextCall(get); | |
18 assertEquals(undefined, get(a)); | |
OLD | NEW |