Skip to content

Commit 8a8a686

Browse files
committed
doc,net: assign deprecation code
Missed while landing 75a19fb. Ref: #14449 PR-URL: #14576 Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 2ca9f94 commit 8a8a686

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

doc/api/deprecations.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -634,8 +634,8 @@ Type: End-of-Life
634634

635635
*Note*: change was made while `async_hooks` was an experimental API.
636636

637-
<a id="DEP00XX"></a>
638-
### DEP00XX: Several internal properties of net.Server
637+
<a id="DEP0073"></a>
638+
### DEP0073: Several internal properties of net.Server
639639

640640
Type: Runtime
641641

lib/net.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1708,27 +1708,27 @@ if (process.platform === 'win32') {
17081708
Object.defineProperty(Server.prototype, '_usingSlaves', {
17091709
get: internalUtil.deprecate(function() {
17101710
return this._usingWorkers;
1711-
}, 'Accessing internal properties of net.Server is deprecated.', 'DEP00XX'),
1711+
}, 'Accessing internal properties of net.Server is deprecated.', 'DEP0073'),
17121712
set: internalUtil.deprecate((val) => {
17131713
this._usingWorkers = val;
1714-
}, 'Accessing internal properties of net.Server is deprecated.', 'DEP00XX'),
1714+
}, 'Accessing internal properties of net.Server is deprecated.', 'DEP0073'),
17151715
configurable: true, enumerable: false
17161716
});
17171717

17181718
Object.defineProperty(Server.prototype, '_slaves', {
17191719
get: internalUtil.deprecate(function() {
17201720
return this._workers;
1721-
}, 'Accessing internal properties of net.Server is deprecated.', 'DEP00XX'),
1721+
}, 'Accessing internal properties of net.Server is deprecated.', 'DEP0073'),
17221722
set: internalUtil.deprecate((val) => {
17231723
this._workers = val;
1724-
}, 'Accessing internal properties of net.Server is deprecated.', 'DEP00XX'),
1724+
}, 'Accessing internal properties of net.Server is deprecated.', 'DEP0073'),
17251725
configurable: true, enumerable: false
17261726
});
17271727

17281728
Object.defineProperty(Server.prototype, '_setupSlave', {
17291729
value: internalUtil.deprecate(function(socketList) {
17301730
return this._setupWorker(socketList);
1731-
}, 'Accessing internal properties of net.Server is deprecated.', 'DEP00XX'),
1731+
}, 'Accessing internal properties of net.Server is deprecated.', 'DEP0073'),
17321732
configurable: true, enumerable: false
17331733
});
17341734

0 commit comments

Comments
 (0)