vm2
vm2 copied to clipboard
Better asynchronous code errors handling
Hey,
is there a chance of adding a better errors handling for the async code?
I.e. such that would not require adding global handler for uncaughtException
or unhandledRejection
?
Adding such global handler causes that some errors, that in fact should cause the system to crash and be fixed asap (the "fail fast" principle) will be swallowed...
It should be possible to add an uncaughtException
handler. However, I do not have good ideas of how to implement an unhandledRejection
handler.