Used to fix the odd behaviors of native Error object inheritance code compiled to ES5
npm install @huolala-tech/custom-errorUsed to fix the odd behaviors of native Error object inheritance code compiled to ES5.
If your code is compiled to ES5 target, you may encounter an unexpected behavior.
``typescript
class MyError extends Error {
// blah blah blah
}
const error = new MyError();
console.log(error instanceof Error); // true
console.log(error instanceof MyError); // false