Define error name manually so it will work when minified

This commit is contained in:
Sindre Sorhus 2017-05-14 21:59:23 +07:00
parent 7d46b457c3
commit 1547fe2c7f
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@
class TimeoutError extends Error {
constructor(message) {
super(message);
this.name = this.constructor.name;
this.name = 'TimeoutError';
}
}