diff --git a/src/jsdocUtils.js b/src/jsdocUtils.js index a8f6fcc86..9d3f5b4cc 100644 --- a/src/jsdocUtils.js +++ b/src/jsdocUtils.js @@ -595,7 +595,7 @@ const getPreferredTagName = ( }), ); - if (Object.hasOwn(tagPreferenceFixed, name)) { + if (Object.prototype.hasOwnProperty.call(tagPreferenceFixed, name)) { return tagPreferenceFixed[name]; } diff --git a/src/rules/matchDescription.js b/src/rules/matchDescription.js index 63d5a68eb..2b95adbca 100644 --- a/src/rules/matchDescription.js +++ b/src/rules/matchDescription.js @@ -43,7 +43,7 @@ export default iterateJsdoc(({ } if (mainDescriptionMatch === false && ( - !tag || !Object.hasOwn(tags, tag.tag)) + !tag || !Object.prototype.hasOwnProperty.call(tags, tag.tag)) ) { return; }