summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug744356.js
blob: 9487f5f4d50f7917ae16d2302bf1c191fe1ebe3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// |jit-test| error: ReferenceError;
gczeal(4);
function* gen() {
  var c = [1, "x"];
  try {
    yield c;
  } finally {
    gc();
  }
}
var iter = gen();
for (i of iter) {
  (SECTION)();
}