Closed dannyrscott closed 10 years ago
While it is a fairly safe assumption that anything that evaluates instanceof Error as true will have a stack, it is possible that it won't. This PR prevents crashes in that case.
Check out https://github.com/auth0/express-jwt/pull/21 for an example
Thanks for the update!
While it is a fairly safe assumption that anything that evaluates instanceof Error as true will have a stack, it is possible that it won't. This PR prevents crashes in that case.
Check out https://github.com/auth0/express-jwt/pull/21 for an example