1 function fn(): Promise<never> { 2 throw new Error("message"); 3 } 4 async function call() { 5 try { 6 console.log("before await fn()"); 7 await fn(); 8 console.log("after await fn()"); 9 } catch (_error) { 10 console.log("catch"); 11 } 12 console.log("after try-catch"); 13 } 14 call().catch(() => console.log("outer catch"));