summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/generators/bug1767181.js
blob: 54892be81f7b0e82b4609b900eec9f9600ef0156 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
var caught = false;
function* a() {
  try {
    try {
      yield;
    } finally {
      for (b = 0; b < 20; b++) {}
    }
  } catch (e) { caught = true; }
}
c = a();
c.next();
c.return();
assertEq(caught, false);