Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 58da5d9

Browse filesBrowse files
Trotttargos
authored andcommitted
tools: use Object.hasOwn() in alljson.mjs
Replace hasOwnProperty() with Object.hasOwn(). PR-URL: #41306 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 314102b commit 58da5d9
Copy full SHA for 58da5d9

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Collapse file

‎tools/doc/alljson.mjs‎

Copy file name to clipboardExpand all lines: tools/doc/alljson.mjs
+1-1Lines changed: 1 addition & 1 deletion
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.