Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
matt-attack
on July 5, 2019
|
parent
|
context
|
favorite
| on:
Mistakes we make using JavaScript Promises
Interesting about adding async. I actually didn’t know it eliminated the possibility of it throwing an error. What happens if it explicitly throws an error?
seniorsassycat
on July 5, 2019
[–]
An async function that throws and error will return a promise that will reject with the thrown error.
Consider applying for YC's Summer 2025 batch! Applications are open till May 13
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: