Merge pull request #1521 from hrodward/patch-24

Update solution.md
This commit is contained in:
Ilya Kantor 2019-10-26 08:44:13 +03:00 committed by GitHub
commit ec91bab3d0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,7 +2,7 @@
class FormatError extends SyntaxError {
constructor(message) {
super(message);
this.name = "FormatError";
this.name = this.constructor.name;
}
}