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

let called = false;

Promise.resolve()
.then(() => {nonExsisting()})
.finally(() => {})
.catch(() => {called = true;})
.then(v => assert.sameValue(called, true))
.then($DONE, $DONE);