GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test: replace forEach() with for ... of in test-tls-getprotocol.js · nodejs/node@75ee784

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • test/parallel
    • test-tls-getprotocol.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎test/parallel/test-tls-getprotocol.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-tls-getprotocol.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const serverConfig = {
3535
const server = tls.createServer(serverConfig, common.mustCall(clientConfigs.length))
3636
.listen(0, common.localhostIPv4, function() {
3737
let connected = 0;
38-
clientConfigs.forEach(function(v) {
38+
for (const v of clientConfigs) {
3939
tls.connect({
4040
host: common.localhostIPv4,
4141
port: server.address().port,
@@ -51,5 +51,5 @@ const server = tls.createServer(serverConfig, common.mustCall(clientConfigs.leng
5151
if (++connected === clientConfigs.length)
5252
server.close();
5353
}));
54-
});
54+
}
5555
});

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.