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 41e4174

Browse filesBrowse files
niyashiyaslpinca
authored andcommitted
test: replace forEach with for..of in test-net-isipv6.js
PR-URL: #49823 Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent ca25d56 commit 41e4174
Copy full SHA for 41e4174

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

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

‎test/parallel/test-net-isipv6.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-net-isipv6.js
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -235,10 +235,10 @@ const v6not = [
235235
'02001:0000:1234:0000:0000:C1C0:ABCD:0876',
236236
];
237237

238-
v6.forEach((ip) => {
238+
for (const ip of v6) {
239239
assert.strictEqual(net.isIPv6(ip), true);
240-
});
240+
}
241241

242-
v6not.forEach((ip) => {
242+
for (const ip of v6not) {
243243
assert.strictEqual(net.isIPv6(ip), false);
244-
});
244+
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.