3 ms·
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.
by thesmallestcat 9y 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.
- codedokode 9y agoThen the promises should have been advertised as a part of async/await syntax. But many articles promote using them by themselves.
- camus2 9y agoPromises 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.