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

/* Duplicate of s16. */

var obj = {};
var p = Promise.reject(obj);

p.then(undefined, undefined)
.then(
    v => DONOTEVALUATE(),
    e => {
        assert.sameValue(e, obj,
                         'Expected resolution object to be passed through, got ' + e);
})
.then($DONE, $DONE);