Skip to content

Commit

Permalink
tools: use Object.hasOwn() in alljson.mjs
Browse files Browse the repository at this point in the history
Replace hasOwnProperty() with Object.hasOwn().

PR-URL: #41306
Reviewed-By: Antoine du Hamel <[email protected]>
Reviewed-By: Tobias Nießen <[email protected]>
Reviewed-By: Mohammed Keyvanzadeh <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
Trott authored and danielleadams committed Jan 31, 2022
1 parent ecb5d37 commit d1e78a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/doc/alljson.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ for (const link of toc.match(/<a.*?>/g)) {
);

for (const property in data) {
if (results.hasOwnProperty(property)) {
if (Object.hasOwn(results, property)) {
data[property].forEach((mod) => {
mod.source = data.source;
});
Expand Down

0 comments on commit d1e78a1

Please sign in to comment.