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

View File

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