Skip to content

Commit 178fcb7

Browse files
committed
dgram: calculate bind address without arguments
1 parent 2db3b94 commit 178fcb7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/dgram.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ function replaceHandle(self, newHandle) {
131131
self._handle = newHandle;
132132
}
133133

134-
Socket.prototype.bind = function(port_ /*, address, callback*/) {
134+
Socket.prototype.bind = function(port_, address_ /*, callback*/) {
135135
var self = this;
136136
let port = port_;
137137

@@ -159,7 +159,7 @@ Socket.prototype.bind = function(port_ /*, address, callback*/) {
159159
exclusive = !!port.exclusive;
160160
port = port.port;
161161
} else {
162-
address = typeof arguments[1] === 'function' ? '' : arguments[1];
162+
address = typeof address_ === 'function' ? '' : address_;
163163
exclusive = false;
164164
}
165165

0 commit comments

Comments
 (0)