commit
ec91bab3d0
1 changed files with 1 additions and 1 deletions
|
@ -2,7 +2,7 @@
|
|||
class FormatError extends SyntaxError {
|
||||
constructor(message) {
|
||||
super(message);
|
||||
this.name = "FormatError";
|
||||
this.name = this.constructor.name;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue