function doSomething() {
return new Promise((resolve, reject) => {
resolve("rrrrr");
})
}
let ky = {x: async function()
{
return await doSomething();
},
post : async function()
{
console.log(await this.x())
}
}
ky.post();