summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/auto-regress/bug1416809-2.js
blob: eb63cdbe331e0c423e6a5ec3754ddbca145e969e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// https://tc39.github.io/proposal-async-iteration

// Recursion between:
// 11.4.3.4 AsyncGeneratorReject, step 7.
// 11.4.3.5 AsyncGeneratorResumeNext, step 10.b.ii.2.

ignoreUnhandledRejections();

var asyncIter = async function*(){ yield; }();
asyncIter.next();

for (var i = 0; i < 20000; i++) {
    asyncIter.throw();
}