summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/gc/bug-1196210.js
blob: dbdf4fe81a7f3bfa931d59b20d86f64c81c72a7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
function foo() {
  function testGeneratorDeepBail() {
    gc();
    for (let i = 0; Error(); i++) {
      for each(var x in [{n: 1}, {n: 1}]) {
        x[0] = 0;
        Object.freeze(x);
      }
      if (i == 10)
        break;
    }
  }
  testGeneratorDeepBail();
} foo();