We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a747f6 commit 3c52dbeCopy full SHA for 3c52dbe
lib/net.js
@@ -1078,7 +1078,7 @@ function Server(options, connectionListener) {
1078
options = {};
1079
this.on('connection', connectionListener);
1080
} else if (options == null || typeof options === 'object') {
1081
- options = options || {};
+ options = { ...options };
1082
1083
if (typeof connectionListener === 'function') {
1084
0 commit comments