blob: 3236fb3de735600c6adeabec472b33c6d4f903d5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
export function createErrorClass(createImpl) {
var _super = function (instance) {
Error.call(instance);
instance.stack = new Error().stack;
};
var ctorFunc = createImpl(_super);
ctorFunc.prototype = Object.create(Error.prototype);
ctorFunc.prototype.constructor = ctorFunc;
return ctorFunc;
}
//# sourceMappingURL=createErrorClass.js.map
|