是以下代码:
async function foo() {
await 1
}
...等效于:
function foo() {
return Promise.resolve(1).then(() => undefined)
开满天机
相关分类