Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed Jun 5, 2022
1 parent 4a9e4f5 commit 0923a85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/error/normalize/set.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Error properties are non-enumerable
export const setErrorProperty = function (error, propName, value) {
// eslint-disable-next-line fp/no-mutating-methods
Object.defineProperty(error, 'name', {
Object.defineProperty(error, propName, {
value,
writable: true,
enumerable: false,
Expand Down

0 comments on commit 0923a85

Please sign in to comment.