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 Dec 26, 2021
1 parent ffa00fa commit b330ab8
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 b330ab8

Please sign in to comment.