Answer the question
In order to leave comments, you need to log in
How to add a delayed error handler to a Promise?
If you write like this, then the error is not caught:
let bbb = Promise.resolve();
bbb.then(none => {
throw "ошибк2";
})
bbb.catch(err => {
console.log(err)
});
Promise.resolve()
.then(none => {
throw "ошибк2";
})
.catch(err => {
console.log(err)
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question