summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/warp/bug1762770.js
blob: 8f693b77e6048818ab816a4b321627aad186dbe0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
function* a() {
  try {
    yield 1;
  } finally {
    for (c = 0; c < 100; c++);
  }
}

var b = a();
b.next();
let result = b.return(42);
assertEq(result.value, 42);
assertEq(result.done, true);