14 lines
461 B
JavaScript
14 lines
461 B
JavaScript
export class DecodeError extends Error {
|
|
constructor(message) {
|
|
super(message);
|
|
// fix the prototype chain in a cross-platform way
|
|
const proto = Object.create(DecodeError.prototype);
|
|
Object.setPrototypeOf(this, proto);
|
|
Object.defineProperty(this, "name", {
|
|
configurable: true,
|
|
enumerable: false,
|
|
value: DecodeError.name,
|
|
});
|
|
}
|
|
}
|
|
//# sourceMappingURL=DecodeError.mjs.map
|