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 1ee47d5 commit 96f27dbCopy full SHA for 96f27db
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