aboutsummaryrefslogtreecommitdiff
path: root/test/js/promise_catch_throw.t.js
blob: 9bf99da5b0fb68d8302136a145f022bcb7a691e2 (plain)
1
2
3
4
5
6
7
8
9
10
/*---
includes: []
flags: [async]
---*/

Promise.resolve()
.then(() => {nonExsisting()})
.catch(() => {nonExsistingInCatch()})
.catch(v => assert.sameValue(v.constructor, ReferenceError))
.then($DONE, $DONE);