function test() { return new Promise((resolve, reject) => { setTimeout(() => { reject() }, 1000) }) } async function test2() { await test().catch(() => {}) console.log(1) console.log('success') } test2()