Skip to content

Commit 85a21bf

Browse files
committed
fix: revert use of too-high language feature; fixes #1148
1 parent 918dbed commit 85a21bf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/jsdocUtils.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,7 @@ const getPreferredTagName = (
595595
}),
596596
);
597597

598-
if (Object.hasOwn(tagPreferenceFixed, name)) {
598+
if (Object.prototype.hasOwnProperty.call(tagPreferenceFixed, name)) {
599599
return tagPreferenceFixed[name];
600600
}
601601

src/rules/matchDescription.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export default iterateJsdoc(({
4343
}
4444

4545
if (mainDescriptionMatch === false && (
46-
!tag || !Object.hasOwn(tags, tag.tag))
46+
!tag || !Object.prototype.hasOwnProperty.call(tags, tag.tag))
4747
) {
4848
return;
4949
}

0 commit comments

Comments
 (0)