Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 88b2889

Browse filesBrowse files
mscdexjasnell
authored andcommitted
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 <me@silverwind.io> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 3c70dc8 commit 88b2889
Copy full SHA for 88b2889

File tree

Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Open diff view settings
Collapse file

‎lib/dgram.js‎

Copy file name to clipboardExpand all lines: lib/dgram.js
+2-1Lines changed: 2 additions & 1 deletion
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.