diff options
Diffstat (limited to 'lib/net.js')
-rw-r--r-- | lib/net.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/net.js b/lib/net.js index e4f97ab80d..1213098953 100644 --- a/lib/net.js +++ b/lib/net.js @@ -1131,9 +1131,10 @@ function Server(options, connectionListener) { } return this._connections; }, 'Server.connections property is deprecated. ' + - 'Use Server.getConnections method instead.'), + 'Use Server.getConnections method instead.', 'DEP0020'), set: internalUtil.deprecate((val) => (this._connections = val), - 'Server.connections property is deprecated.'), + 'Server.connections property is deprecated.', + 'DEP0020'), configurable: true, enumerable: false }); @@ -1546,7 +1547,8 @@ function emitCloseNT(self) { Server.prototype.listenFD = internalUtil.deprecate(function(fd, type) { return this.listen({ fd: fd }); -}, 'Server.listenFD is deprecated. Use Server.listen({fd: <number>}) instead.'); +}, 'Server.listenFD is deprecated. Use Server.listen({fd: <number>}) instead.', + 'DEP0021'); Server.prototype._setupSlave = function(socketList) { this._usingSlaves = true; |