summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/promise/settle-now-breaks-all-invariants-8.js
blob: 8b581b7725f27cb9916bed07654b7ded0b8cbe46 (plain)
1
2
3
4
5
6
7
// Don't assert when settlePromiseNow() is called on an async-function promise.

var promise = async function(){ await 0; }();

try {
    settlePromiseNow(promise);
} catch {}