Skip to content

Commit

Permalink
test: change anonymous closure functions to arrow functions
Browse files Browse the repository at this point in the history
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 rvagg committed Nov 28, 2018
1 parent 21e59a6 commit 237e479
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-http-res-write-end-dont-take-array.js
Expand Up @@ -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();
});
Expand Down

0 comments on commit 237e479

Please sign in to comment.