blob: db85b16eb7435b91dd89937328c49e41b6c57f76 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
/*---
includes: []
flags: [async]
---*/
async function add(x) {
return await new Promise((resolve, reject) => {reject(x)}).catch(v => v + 1);
}
add(50).then(v => {
assert.sameValue(v, 51);
})
.then($DONE, $DONE);
|