frontend/.pnpm-store/v3/files/fd/91d0234e74564f205cbd7037c82a2a8cd615afbc8c46f9df087c0969ddfb9ceb2e60e4b4360c7421fef4cd0ab2d6cc623260edb5a8c233d276a80d580c9f24

11 lines
375 B
Plaintext

export function createErrorClass(createImpl) {
const _super = (instance) => {
Error.call(instance);
instance.stack = new Error().stack;
};
const ctorFunc = createImpl(_super);
ctorFunc.prototype = Object.create(Error.prototype);
ctorFunc.prototype.constructor = ctorFunc;
return ctorFunc;
}
//# sourceMappingURL=createErrorClass.js.map