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