summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/profiler/bug1774149.js
blob: 08c44b462b320d799bccb9fced8c4d0e0f30093a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// |jit-test| --fast-warmup
function* f() {
  try {
    yield;
  } finally {
    for (let i = 0; i < 10; i++) {}
  }
}
enableGeckoProfilingWithSlowAssertions();
for (var i = 0; i < 25; ++i) {
  let it = f();
  it.next();
  it.return();
}