mirror of
https://github.com/nodejs/node.git
synced 2026-11-26 21:58:26 -05:00
test: replcae anonymous closure with arrow function
PR-URL: https://github.com/nodejs/node/pull/24476 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
This commit is contained in:
1 parent
b827db0ef3
commit
44d9084f66
1 file changed
+2
-2
@@ -23,9 +23,9 @@ const server = http.createServer(common.mustCall(function(req, res) {
|
||||
|
||||
}));
|
||||
|
||||
server.listen(0, function() {
|
||||
server.listen(0, () => {
|
||||
http.request({
|
||||
port: this.address().port,
|
||||
port: server.address().port,
|
||||
path: expected,
|
||||
method: 'GET'
|
||||
}, common.mustCall(function(res) {
|
||||
|
||||
Reference in new issue
Block a user