blob: db34064457cc30a4ef4ee84e07988bef30380b28 [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
6
7var o0 = [];
8var o1 = [];
9var cnt = 0;
10var only_scavenge = true;
11o1.__defineGetter__(0, function() {
12 if (cnt++ > 2) return;
13 o0.shift();
14 gc(only_scavenge);
15 o0.push((64));
16 o0.concat(o1);
17});
18o1[0];