Skip to content

Commit c99026b

Browse files
committed
doc: update missing deprecation
The deprecation code was not updated when landing the PR. PR-URL: #23883 Refs: #23760 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Vse Mozhet Byt <[email protected]> Reviewed-By: Matheus Marchini <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent ffa5c7e commit c99026b

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

doc/api/deprecations.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2264,8 +2264,8 @@ undocumented `COUNTER_NET_SERVER_CONNECTION()`,
22642264
`COUNTER_HTTP_SERVER_RESPONSE()`, `COUNTER_HTTP_CLIENT_REQUEST()`, and
22652265
`COUNTER_HTTP_CLIENT_RESPONSE()` functions have been deprecated.
22662266
2267-
<a id="DEP00XX"></a>
2268-
### DEP00XX: net._setSimultaneousAccepts()
2267+
<a id="DEP0121"></a>
2268+
### DEP0121: net._setSimultaneousAccepts()
22692269
<!-- YAML
22702270
changes:
22712271
- version: REPLACEME

lib/net.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1677,7 +1677,7 @@ if (process.platform === 'win32') {
16771677
if (warnSimultaneousAccepts) {
16781678
process.emitWarning(
16791679
'net._setSimultaneousAccepts() is deprecated and will be removed.',
1680-
'DeprecationWarning', 'DEP00XX');
1680+
'DeprecationWarning', 'DEP0121');
16811681
warnSimultaneousAccepts = false;
16821682
}
16831683
if (handle === undefined) {
@@ -1699,7 +1699,7 @@ if (process.platform === 'win32') {
16991699
if (warnSimultaneousAccepts) {
17001700
process.emitWarning(
17011701
'net._setSimultaneousAccepts() is deprecated and will be removed.',
1702-
'DeprecationWarning', 'DEP00XX');
1702+
'DeprecationWarning', 'DEP0121');
17031703
warnSimultaneousAccepts = false;
17041704
}
17051705
};

test/parallel/test-net-deprecated-setsimultaneousaccepts.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ const {
1111
expectWarning(
1212
'DeprecationWarning',
1313
'net._setSimultaneousAccepts() is deprecated and will be removed.',
14-
'DEP00XX');
14+
'DEP0121');
1515

1616
_setSimultaneousAccepts();

0 commit comments

Comments
 (0)