Merge pull request #494 from shikorism/fix/es5-error-workaround

ES5 User error class workaround
This commit is contained in:
shibafu 2020-08-23 15:40:40 +09:00 committed by GitHub
commit 3406b326f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -67,5 +67,6 @@ export class ResponseError extends Error {
this.name = 'ResponseError';
this.response = response;
Object.setPrototypeOf(this, new.target.prototype);
}
}