91d0234e74564f205cbd7037c82a2a8cd615afbc8c46f9df087c0969ddfb9ceb2e60e4b4360c7421fef4cd0ab2d6cc623260edb5a8c233d276a80d580c9f24 375 B

1234567891011
  1. export function createErrorClass(createImpl) {
  2. const _super = (instance) => {
  3. Error.call(instance);
  4. instance.stack = new Error().stack;
  5. };
  6. const ctorFunc = createImpl(_super);
  7. ctorFunc.prototype = Object.create(Error.prototype);
  8. ctorFunc.prototype.constructor = ctorFunc;
  9. return ctorFunc;
  10. }
  11. //# sourceMappingURL=createErrorClass.js.map