Chromium Code Reviews| 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: --expose-gc --always-opt | |
| 6 | |
| 7 function f(a,b,c) { | |
| 8 a.a = b; | |
| 9 a[1] = c; | |
| 10 return a; | |
| 11 } | |
| 12 | |
| 13 f(new Array(5),.5,0); | |
| 14 var o1 = f(new Array(5),0,.5); | |
| 15 gc(); | |
| 16 var o2 = f(new Array(5),0,0); | |
| 17 var o3 = f(new Array(5),0); | |
| 18 assertEquals(0, o3.a); | |
| OLD | NEW |