Skip to content

Commit

Permalink
Disable prefer-object-has-own, it is not compatible with Node v14.18.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ericcornelissen committed Dec 15, 2024
1 parent 19e4e5a commit 9d8251b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/eslint.js
Original file line number Diff line number Diff line change
Expand Up @@ -731,7 +731,7 @@ export default [
"prefer-exponentiation-operator": ["error"],
"prefer-named-capture-group": ["off"],
"prefer-numeric-literals": ["error"],
"prefer-object-has-own": ["error"],
"prefer-object-has-own": ["off"],
"prefer-object-spread": ["error"],
"prefer-promise-reject-errors": ["error"],
"prefer-regex-literals": ["error"],
Expand Down
2 changes: 1 addition & 1 deletion src/internal/reflection.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const typeofString = "string";
* @returns {boolean} `true` if property is an own-property, `false` otherwise.
*/
export function hasOwn(object, property) {
return Object.hasOwn(object, property);
return Object.prototype.hasOwnProperty.call(object, property);
}

/**
Expand Down

0 comments on commit 9d8251b

Please sign in to comment.