Why doesn’t the try catch block catch the promise exception?
I can see two possible aspects to your question: The error being thrown in test is in the synchronous (not asynchronous) part of test. Why is it a promise rejection rather than a synchronous exception? The promise from test() is being rejected, why doesn’t catch catch that rejection? #1 – Why is it a rejection? … Read more