Skip to content

Commit

Permalink
fix: revert use of too-high language feature; fixes gajus#1148
Browse files Browse the repository at this point in the history
  • Loading branch information
brettz9 committed Aug 29, 2023
1 parent 48cc6be commit 57a1ef2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/jsdocUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ const getPreferredTagName = (
}),
);

if (Object.hasOwn(tagPreferenceFixed, name)) {
if (Object.prototype.hasOwnProperty.call(tagPreferenceFixed, name)) {
return tagPreferenceFixed[name];
}

Expand Down
2 changes: 1 addition & 1 deletion src/rules/matchDescription.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 57a1ef2

Please sign in to comment.