SniberbS
Reactiflux3y ago
9 replies
Sniberb

⛄Snowberb⛄ – 10-12 May 18

Why doesnt the
try catch finally
of this code respect the
awaits
, but if it is inside the
(async () => {})()
it does? I dont understand the syntax here
 try {
        (async () => {
          if (!...) {
            const ... = await ...;
            ...
            return;
          }
          await ...
        })();
} catch (e) {} finally {}
Was this page helpful?