Skip to content

Commit

Permalink
Define error name manually so it will work when minified
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed May 14, 2017
1 parent 7d46b45 commit 1547fe2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -3,7 +3,7 @@
class TimeoutError extends Error {
constructor(message) {
super(message);
this.name = this.constructor.name;
this.name = 'TimeoutError';
}
}

Expand Down

0 comments on commit 1547fe2

Please sign in to comment.