There isn't actually a _socket parameter to dgram sockets' error handlers

This commit is contained in:
Kai Tamkun
2024-12-17 20:22:00 -08:00
parent 52002a1088
commit b8205e0b70

View File

@@ -354,7 +354,7 @@ Socket.prototype.bind = function (port_, address_ /* , callback */) {
family,
});
},
error: (_socket, error) => {
error: error => {
this.emit("error", error);
},
},