3 ms·
I'm confused re: this slide at 24m23s: > We cannot know if a thrown exception in a Promise is going to be caught or not Bryan could you explain this? If you c
by nailer 9y ago
I'm confused re: this slide at 24m23s:
> We cannot know if a thrown exception in a Promise is going to be caught or not
Bryan could you explain this? If you catch exceptions, or handle uncaught exceptions, it'll be caught.
process.on('unhandledRejection', function(reason, promise) {
console.log(promise);
});
If programmatic errors were not exceptions as you wish, what would they be instead?