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