Y
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
codedokode
3053 days ago
Then the promises should have been advertised as a part of async/await syntax. But many articles promote using them by themselves.
link
camus2
3053 days ago
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.
link