3 ms·
It's fulfilled. If you return from the rejection handler, instead of rethrowing, then you have handled the error: rejectedPromise.catch(e => { return 5; });
by domenicd 12y ago
It's fulfilled. If you return from the rejection handler, instead of rethrowing, then you have handled the error:
rejectedPromise.catch(e => {
return 5;
});
is similar to
try {
throwError();
} catch (e) {
return 5;
}