diff options
author | Kunda Sunil Kumar <kunda.sunilkumar@gmail.com> | 2018-11-17 18:14:03 +0530 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2018-11-19 20:29:49 -0800 |
commit | 8e4688a2e0928a7ea75df9377cf2d341783cdb35 (patch) | |
tree | 4b507d1efcfa9fc11336aeb263a20a6a8102e0b7 /test | |
parent | f86b7a998b2d226513dd1e89defa1dc787187466 (diff) | |
download | android-node-v8-8e4688a2e0928a7ea75df9377cf2d341783cdb35.tar.gz android-node-v8-8e4688a2e0928a7ea75df9377cf2d341783cdb35.tar.bz2 android-node-v8-8e4688a2e0928a7ea75df9377cf2d341783cdb35.zip |
test: replace anonymous closure function with arrow function
PR-URL: https://github.com/nodejs/node/pull/24435
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
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: Ouyang Yadong <oyydoibh@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/parallel/test-dgram-send-callback-recursive.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-dgram-send-callback-recursive.js b/test/parallel/test-dgram-send-callback-recursive.js index ce9d95dce7..835fa332df 100644 --- a/test/parallel/test-dgram-send-callback-recursive.js +++ b/test/parallel/test-dgram-send-callback-recursive.js @@ -29,7 +29,7 @@ client.on('listening', function() { onsend(); }); -client.on('message', function(buf, info) { +client.on('message', (buf, info) => { received++; if (received === limit) { client.close(); |