ES5 User error class workaround

This commit is contained in:
shibafu 2020-08-23 15:07:06 +09:00
parent d1f14ed271
commit 7708e705cc

View File

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