ES5 User error class workaround

This commit is contained in:
shibafu committed 2020-08-23 15:08:13 +09:00
1 parent d1f14ed271
commit 7708e705cc
1 file changed
+1
+1
View File
@@ -67,5 +67,6 @@ export class ResponseError extends Error {
this.name = 'ResponseError';
this.response = response;
Object.setPrototypeOf(this, new.target.prototype);
}
}