« first day (2060 days earlier)      last day (2057 days later) » 

 
7 hours later…
 
3 hours later…
12:38
1 message moved from JavaScript
12:50
@MadaraUchiha I am not entirely sure what your point is. "try/catch works inside of async functions". Well yeah, but it does so too in promises:

const promise = new Promise((resolve, reject) => {
try {
setTimeout(() => {reject('setTimout error')}, 1000);
} catch(e) {
console.log('err:', e)
}
})

promise
.then(res => { console.log('res', res)})
1 message moved from JavaScript
 
1 hour later…
 
9 hours later…

« first day (2060 days earlier)      last day (2057 days later) »