'use strict'; const fs = require('node:fs'); const f1 = async () => { setTimeout(() => { fs.promises.readFile().catch((err) => { //throw err; console.log('Catch 2', err); }); }, 0); }; const f2 = async () => await f1(); const f3 = async () => await f2(); const main = async () => { try { await f3(); } catch (err) { console.log('Catch 1', err); } }; main();