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
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];
19