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

Promise.resolve('here')
.finally(() => {'nope'})
.then(v => assert.sameValue(v, 'here'));

Promise.resolve('here')
.finally(() => {throw 'nope'})
.then(v => $DONOTEVALUATE())
.catch(v => assert.sameValue(v, 'nope'))
.then($DONE, $DONE);