You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
.then() blocks and await should not swallow programming errors like syntax errors or undefined variables, they should cause a red box to appear and an error to be logged like with synchronous code. This can make it easier to find and debug errors in asynchronous code.
Reproducible Demo
promise.then(() => {
console.log(someUndefinedVar) // oops
}).catch(error => {
// error is passed here
})
The text was updated successfully, but these errors were encountered:
Environment
Description
.then() blocks and await should not swallow programming errors like syntax errors or undefined variables, they should cause a red box to appear and an error to be logged like with synchronous code. This can make it easier to find and debug errors in asynchronous code.
Reproducible Demo
The text was updated successfully, but these errors were encountered: