blob: dec5ca7e49413c7f65505f4fb3d432b6d3baf94c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
/*---
includes: []
flags: [async]
---*/
let called = false;
var thenable = new Promise(function() {});
var p = new Promise(function(resolve) {
resolve();
throw thenable;
});
p.then(function() {
called = true;
})
.then(() => assert.sameValue(called, true))
.then($DONE, $DONE);
|