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 — doc: replace anonymous function with arrow function · nodejs/node@73b99c7

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • doc/guides
    • writing-and-running-benchmarks.md
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎doc/guides/writing-and-running-benchmarks.md‎

Copy file name to clipboardExpand all lines: doc/guides/writing-and-running-benchmarks.md
+3-3Lines changed: 3 additions & 3 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -444,14 +444,14 @@ function main(conf) {
444444
const http = require('http');
445445
const len = conf.kb * 1024;
446446
const chunk = Buffer.alloc(len, 'x');
447-
const server = http.createServer(function(req, res) {
447+
const server = http.createServer((req, res) => {
448448
res.end(chunk);
449449
});
450450

451-
server.listen(common.PORT, function() {
451+
server.listen(common.PORT, () => {
452452
bench.http({
453453
connections: conf.connections,
454-
}, function() {
454+
}, () => {
455455
server.close();
456456
});
457457
});

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.