ES5 User error class workaround
This commit is contained in:
parent
d1f14ed271
commit
7708e705cc
@ -67,5 +67,6 @@ export class ResponseError extends Error {
|
|||||||
|
|
||||||
this.name = 'ResponseError';
|
this.name = 'ResponseError';
|
||||||
this.response = response;
|
this.response = response;
|
||||||
|
Object.setPrototypeOf(this, new.target.prototype);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user