summaryrefslogtreecommitdiff
path: root/js/src/jit-test/tests/basic/bug744356.js
blob: cba9dc3c8a8ae1a767f1a30811b539d2005790cd (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 in iter) {
  (SECTION)();
}