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
someAsyncFunctionThrowException nunca tratará da exceção. Quando o código async disparar uma exceção ela será tratada no callback que estiver correndo, se isso não acontecer o processo tratará dele.
Em node.js é disparado um evento 'uncaughtException' que podere ser observado:
process.on('uncaughtException', function (err) {
console.log(err); //shutdown averted!
});