mirror of
https://github.com/LukeHagar/relay.git
synced 2025-12-06 04:21:14 +00:00
18 lines
595 B
JavaScript
18 lines
595 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.DecodeError = void 0;
|
|
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,
|
|
});
|
|
}
|
|
}
|
|
exports.DecodeError = DecodeError;
|
|
//# sourceMappingURL=DecodeError.js.map
|