Skip to content

Commit

Permalink
fix: use ES5 style function syntax (#1830)
Browse files Browse the repository at this point in the history
Issues: #1829
  • Loading branch information
acode-x authored Feb 2, 2023
1 parent 4489fa7 commit 64e8936
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/util/minimal.js
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ function newError(name) {
configurable: true,
},
name: {
get() { return name; },
get: function get() { return name; },
set: undefined,
enumerable: false,
// configurable: false would accurately preserve the behavior of
Expand All @@ -298,7 +298,7 @@ function newError(name) {
configurable: true,
},
toString: {
value() { return this.name + ": " + this.message; },
value: function value() { return this.name + ": " + this.message; },
writable: true,
enumerable: false,
configurable: true,
Expand Down

0 comments on commit 64e8936

Please sign in to comment.