Skip to content
Permalink
Browse files

net: shallow copy option when create Server

PR-URL: #28924
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Masashi Hirano <shisama07@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
  • Loading branch information...
Himself65 authored and BridgeAR committed Aug 1, 2019
1 parent 4a747f6 commit 3c52dbe15b9e791359d20f9b52f9b8b58db90584
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/net.js
@@ -1078,7 +1078,7 @@ function Server(options, connectionListener) {
options = {};
this.on('connection', connectionListener);
} else if (options == null || typeof options === 'object') {
options = options || {};
options = { ...options };

if (typeof connectionListener === 'function') {
this.on('connection', connectionListener);

0 comments on commit 3c52dbe

Please sign in to comment.
You can’t perform that action at this time.