Javascript – How to catch all errors that are thrown asyncronously in a Promise
The problem I am facing is that somewhere in the code I am working with there is an error that I cannot catch. The simplest example of this would be the code below: try { new Promise((res, rej) => rej(new…