summaryrefslogtreecommitdiff
path: root/lib/net.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/net.js')
-rw-r--r--lib/net.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/net.js b/lib/net.js
index ba7c3eb6da..70670c2ffd 100644
--- a/lib/net.js
+++ b/lib/net.js
@@ -1145,7 +1145,7 @@ function Server(options, connectionListener) {
this.allowHalfOpen = options.allowHalfOpen || false;
this.pauseOnConnect = !!options.pauseOnConnect;
}
-util.inherits(Server, EventEmitter);
+Object.setPrototypeOf(Server.prototype, EventEmitter.prototype);
function toNumber(x) { return (x = Number(x)) >= 0 ? x : false; }