Merge pull request #494 from shikorism/fix/es5-error-workaround
ES5 User error class workaround
This commit is contained in:
commit
3406b326f0
@ -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