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

test: change anonymous closure functions to arrow functions

PR-URL: #24418
Reviewed-By: Ouyang Yadong <oyydoibh@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information...
oyenamit authored and codebytere committed Nov 17, 2018
1 parent 5c3736a commit 44259264529a19e77967cfae14bf54125194068d
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/parallel/test-http-res-write-end-dont-take-array.js
@@ -62,10 +62,10 @@ server.once('request', common.mustCall((req, res) => {

server.listen(0, function() {
// just make a request, other tests handle responses
http.get({ port: this.address().port }, function(res) {
http.get({ port: this.address().port }, (res) => {
res.resume();
// do it again to test .end(Buffer);
http.get({ port: server.address().port }, function(res) {
http.get({ port: server.address().port }, (res) => {
res.resume();
server.close();
});

0 comments on commit 4425926

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