doc,net: assign deprecation code
Missed while landing 75a19fb379c2d936c6945e63de7c4a28e93eb17d. Ref: https://github.com/nodejs/node/pull/14449 PR-URL: https://github.com/nodejs/node/pull/14576 Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
parent
2ca9f94e33
commit
8a8a6865c0
@ -634,8 +634,8 @@ Type: End-of-Life
|
|||||||
|
|
||||||
*Note*: change was made while `async_hooks` was an experimental API.
|
*Note*: change was made while `async_hooks` was an experimental API.
|
||||||
|
|
||||||
<a id="DEP00XX"></a>
|
<a id="DEP0073"></a>
|
||||||
### DEP00XX: Several internal properties of net.Server
|
### DEP0073: Several internal properties of net.Server
|
||||||
|
|
||||||
Type: Runtime
|
Type: Runtime
|
||||||
|
|
||||||
|
10
lib/net.js
10
lib/net.js
@ -1708,27 +1708,27 @@ if (process.platform === 'win32') {
|
|||||||
Object.defineProperty(Server.prototype, '_usingSlaves', {
|
Object.defineProperty(Server.prototype, '_usingSlaves', {
|
||||||
get: internalUtil.deprecate(function() {
|
get: internalUtil.deprecate(function() {
|
||||||
return this._usingWorkers;
|
return this._usingWorkers;
|
||||||
}, 'Accessing internal properties of net.Server is deprecated.', 'DEP00XX'),
|
}, 'Accessing internal properties of net.Server is deprecated.', 'DEP0073'),
|
||||||
set: internalUtil.deprecate((val) => {
|
set: internalUtil.deprecate((val) => {
|
||||||
this._usingWorkers = val;
|
this._usingWorkers = val;
|
||||||
}, 'Accessing internal properties of net.Server is deprecated.', 'DEP00XX'),
|
}, 'Accessing internal properties of net.Server is deprecated.', 'DEP0073'),
|
||||||
configurable: true, enumerable: false
|
configurable: true, enumerable: false
|
||||||
});
|
});
|
||||||
|
|
||||||
Object.defineProperty(Server.prototype, '_slaves', {
|
Object.defineProperty(Server.prototype, '_slaves', {
|
||||||
get: internalUtil.deprecate(function() {
|
get: internalUtil.deprecate(function() {
|
||||||
return this._workers;
|
return this._workers;
|
||||||
}, 'Accessing internal properties of net.Server is deprecated.', 'DEP00XX'),
|
}, 'Accessing internal properties of net.Server is deprecated.', 'DEP0073'),
|
||||||
set: internalUtil.deprecate((val) => {
|
set: internalUtil.deprecate((val) => {
|
||||||
this._workers = val;
|
this._workers = val;
|
||||||
}, 'Accessing internal properties of net.Server is deprecated.', 'DEP00XX'),
|
}, 'Accessing internal properties of net.Server is deprecated.', 'DEP0073'),
|
||||||
configurable: true, enumerable: false
|
configurable: true, enumerable: false
|
||||||
});
|
});
|
||||||
|
|
||||||
Object.defineProperty(Server.prototype, '_setupSlave', {
|
Object.defineProperty(Server.prototype, '_setupSlave', {
|
||||||
value: internalUtil.deprecate(function(socketList) {
|
value: internalUtil.deprecate(function(socketList) {
|
||||||
return this._setupWorker(socketList);
|
return this._setupWorker(socketList);
|
||||||
}, 'Accessing internal properties of net.Server is deprecated.', 'DEP00XX'),
|
}, 'Accessing internal properties of net.Server is deprecated.', 'DEP0073'),
|
||||||
configurable: true, enumerable: false
|
configurable: true, enumerable: false
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user