Skip to content

Commit

Permalink
Fix XO lint failure
Browse files Browse the repository at this point in the history
Fixes #2
  • Loading branch information
sindresorhus committed Dec 25, 2017
1 parent dc4c1bf commit 7ae39e2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@ class AggregateError extends Error {
message = '\n' + indentString(message, 4);

super(message);
this.name = this.constructor.name;
this.name = 'AggregateError';
Object.defineProperty(this, '_errors', {value: errors});
}

* [Symbol.iterator]() {
for (const error of this._errors) {
yield error;
Expand Down

0 comments on commit 7ae39e2

Please sign in to comment.