Skip to content

Commit 6e829b4

Browse files
mscdexMyles Borins
authored and
Myles Borins
committed
dgram: prevent disabled optimization of bind()
Reassigning a named parameter while also using the arguments object causes the entire function to never be optimized. PR-URL: #4613 Reviewed-By: Roman Reiss <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 661b255 commit 6e829b4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/dgram.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,9 @@ function replaceHandle(self, newHandle) {
134134
self._handle = newHandle;
135135
}
136136

137-
Socket.prototype.bind = function(port /*, address, callback*/) {
137+
Socket.prototype.bind = function(port_ /*, address, callback*/) {
138138
var self = this;
139+
let port = port_;
139140

140141
self._healthCheck();
141142

0 commit comments

Comments
 (0)