SOURCE

async function f() {
    try {
        await Promise.reject('出错了');
    } catch (e) {

    }
    return await Promise.resolve('hello world');
}

f()
    .then(v => console.log(v))
    .catch(e => console.log(e))
console 命令行工具 X clear

                    
>
console