I don't really understand what is the use of try since throwing in a promise was already handled:
new Promise((resolve) => throw new Error('err'));
Would reject like any other promise. I do like the other ones though ;p
At entry scripts where you start synchronous, it can help.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.