Debian Codegraph @

node/rxjs/dist/esm/internal/util/createErrorClass.js

raw
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