blob: b32eeef5f4d32405a4abfa0fb6386b73df282c93 [file] [log] [blame]
Ben Murdochc5610432016-08-08 18:44:38 +01001// 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
7function f(a,b,c) {
8 a.a = b;
9 a[1] = c;
10 return a;
11}
12
13f(new Array(5),.5,0);
14var o1 = f(new Array(5),0,.5);
15gc();
16var o2 = f(new Array(5),0,0);
17var o3 = f(new Array(5),0);
18assertEquals(0, o3.a);