We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 918dbed commit 85a21bfCopy full SHA for 85a21bf
src/jsdocUtils.js
@@ -595,7 +595,7 @@ const getPreferredTagName = (
595
}),
596
);
597
598
- if (Object.hasOwn(tagPreferenceFixed, name)) {
+ if (Object.prototype.hasOwnProperty.call(tagPreferenceFixed, name)) {
599
return tagPreferenceFixed[name];
600
}
601
src/rules/matchDescription.js
@@ -43,7 +43,7 @@ export default iterateJsdoc(({
43
44
45
if (mainDescriptionMatch === false && (
46
- !tag || !Object.hasOwn(tags, tag.tag))
+ !tag || !Object.prototype.hasOwnProperty.call(tags, tag.tag))
47
) {
48
return;
49
0 commit comments