nice write up. not directly related to the topic but I feel that not rejecting promises with anything other than actual Error instance is yucky. ... It would be nice if the whole JS world could agree on that API/Interface ... It would make error handling code alot less error prone (it difficult to know with certainty whether any given .catch() handler wont be confronted with a non Error from some deeply nested dependency)
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
nice write up. not directly related to the topic but I feel that not rejecting promises with anything other than actual Error instance is yucky. ... It would be nice if the whole JS world could agree on that API/Interface ... It would make error handling code alot less error prone (it difficult to know with certainty whether any given
.catch()
handler wont be confronted with a non Error from some deeply nested dependency)