Skip to content

Commit

Permalink
Use ES5 style function syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
acode-x committed Oct 27, 2022
1 parent d026849 commit 202425a
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 202425a

Please sign in to comment.