Ben Murdoch | b8a8cc1 | 2014-11-26 15:28:44 +0000 | [diff] [blame] | 1 | // Copyright 2014 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 | Object.prototype.__defineGetter__('constructor', function() { throw 42; }); |
| 8 | __v_7 = [ |
| 9 | function() { [].push() }, |
| 10 | ]; |
| 11 | for (var __v_6 = 0; __v_6 < 5; ++__v_6) { |
| 12 | for (var __v_8 in __v_7) { |
| 13 | print(__v_8, " -> ", __v_7[__v_8]); |
| 14 | gc(); |
| 15 | try { __v_7[__v_8](); } catch (e) {}; |
| 16 | } |
| 17 | } |