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
7Object.prototype.__defineGetter__('constructor', function() { throw 42; });
8__v_7 = [
9  function() { [].push() },
10];
11for (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}
18