TenantAtlas/apps/platform/.pnpm-store/v10/files/fd/91d0234e74564f205cbd7037c82a2a8cd615afbc8c46f9df087c0969ddfb9ceb2e60e4b4360c7421fef4cd0ab2d6cc623260edb5a8c233d276a80d580c9f24
Ahmed Darrazi 9f74f7a658
Some checks failed
PR Fast Feedback / fast-feedback (pull_request) Failing after 51s
feat: compress governance operator outcomes
2026-04-19 14:15:11 +02:00

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