Hi
When we use inheritance for error handling, but also for standard error class like ReferenceError etc..., the stack trace is lost.
Its because of function isError in formatError.js
check is made with Object.prototype.toString.call(err) === '[object Error]'
but it should be err instanceof Error;
to take inheritance in account
Thanks
Hi When we use inheritance for error handling, but also for standard error class like ReferenceError etc..., the stack trace is lost. Its because of function isError in formatError.js check is made with Object.prototype.toString.call(err) === '[object Error]' but it should be err instanceof Error; to take inheritance in account Thanks