Skip to content

Commit 58da5d9

Browse files
Trotttargos
authored andcommitted
tools: use Object.hasOwn() in alljson.mjs
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]>
1 parent 314102b commit 58da5d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/doc/alljson.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ for (const link of toc.match(/<a.*?>/g)) {
4040
);
4141

4242
for (const property in data) {
43-
if (results.hasOwnProperty(property)) {
43+
if (Object.hasOwn(results, property)) {
4444
data[property].forEach((mod) => {
4545
mod.source = data.source;
4646
});

0 commit comments

Comments
 (0)