★ wanayoo — archive 1999 https://github.com/nodejs/node/commit/c15208cb8fNouvelle recherche | Portail wanayoo
Skip to content
Permalink
Browse files

test: replace anonymous closure with arrow funct

PR-URL: #24439
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
  • Loading branch information...
prabusubra authored and rvagg committed Nov 17, 2018
1 parent 8f18f0d commit c15208cb8f9ed22aed7b696b7be9327d2a885844
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/parallel/test-http-server-stale-close.js
@@ -34,10 +34,10 @@ if (process.env.NODE_TEST_FORK_PORT) {
req.write('BAM');
req.end();
} else {
const server = http.createServer(function(req, res) {
const server = http.createServer((req, res) => {
res.writeHead(200, { 'Content-Length': '42' });
req.pipe(res);
req.on('close', function() {
req.on('close', () => {
server.close();
res.end();
});

0 comments on commit c15208c

Please sign in to comment.
You can’t perform that action at this time.