blob: 35b3ee6c3a3a067e001abaa6a3642555481ea020 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
/*---
includes: []
flags: [async]
---*/
var p1 = Promise.resolve({
then: function(onFulfill, onReject) { onFulfill('fulfilled!'); }
});
p1.then(
function(v) { assert.sameValue(v, 'fulfilled!'); },
function(e) { $DONOTEVALUATE() },
)
.then(() => assert.sameValue(p1 instanceof Promise, true))
.then($DONE, $DONE);
|