Skip to main content
Module

x/msgpack_javascript/src/DecodeError.ts

@msgpack/msgpack - MessagePack for JavaScript/TypeScript/ECMA-262 / msgpack.org[JavaScript]
Go to Latest
File
export class DecodeError extends Error { constructor(message: string) { super(message);
// fix the prototype chain in a cross-platform way const proto: typeof DecodeError.prototype = Object.create(DecodeError.prototype); Object.setPrototypeOf(this, proto);
Object.defineProperty(this, "name", { configurable: true, enumerable: false, value: DecodeError.name, }); }}