Hacker News new | ask | show | jobs
by thesmallestcat 3053 days ago
This is a known footgun of promises. But if you are using async/await, uncaught error in the promise chain is the same as uncaught error inline.
1 comments

Then the promises should have been advertised as a part of async/await syntax. But many articles promote using them by themselves.
Promises existed way before they were put in the specification and way before async/await. So no, promises could not have been advertised as part of async/await since they came before async/await.