Skip to content

Commit 64e8936

Browse files
authoredFeb 2, 2023
fix: use ES5 style function syntax (#1830)
Issues: #1829
1 parent 4489fa7 commit 64e8936

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/util/minimal.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ function newError(name) {
288288
configurable: true,
289289
},
290290
name: {
291-
get() { return name; },
291+
get: function get() { return name; },
292292
set: undefined,
293293
enumerable: false,
294294
// configurable: false would accurately preserve the behavior of
@@ -298,7 +298,7 @@ function newError(name) {
298298
configurable: true,
299299
},
300300
toString: {
301-
value() { return this.name + ": " + this.message; },
301+
value: function value() { return this.name + ": " + this.message; },
302302
writable: true,
303303
enumerable: false,
304304
configurable: true,

0 commit comments

Comments
 (0)
Please sign in to comment.