We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 01d599c commit e0a3e23Copy full SHA for e0a3e23
test/parallel/test-dgram-listen-after-bind.js
@@ -29,16 +29,16 @@ const socket = dgram.createSocket('udp4');
29
socket.bind();
30
31
let fired = false;
32
-const timer = setTimeout(function() {
+const timer = setTimeout(() => {
33
socket.close();
34
}, 100);
35
36
-socket.on('listening', function() {
+socket.on('listening', () => {
37
clearTimeout(timer);
38
fired = true;
39
40
});
41
42
-socket.on('close', function() {
+socket.on('close', () => {
43
assert(fired, 'listening should fire after bind');
44
0 commit comments