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