doc: update missing deprecation

The deprecation code was not updated when landing the PR.

PR-URL: https://github.com/nodejs/node/pull/23883
Refs: https://github.com/nodejs/node/pull/23760
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
Reviewed-By: Matheus Marchini <mat@mmarchini.me>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
cjihrig 2018-10-25 15:27:20 -04:00
parent ffa5c7e054
commit c99026bdd7
No known key found for this signature in database
GPG Key ID: 7434390BDBE9B9C5
3 changed files with 5 additions and 5 deletions

View File

@ -2264,8 +2264,8 @@ undocumented `COUNTER_NET_SERVER_CONNECTION()`,
`COUNTER_HTTP_SERVER_RESPONSE()`, `COUNTER_HTTP_CLIENT_REQUEST()`, and
`COUNTER_HTTP_CLIENT_RESPONSE()` functions have been deprecated.
<a id="DEP00XX"></a>
### DEP00XX: net._setSimultaneousAccepts()
<a id="DEP0121"></a>
### DEP0121: net._setSimultaneousAccepts()
<!-- YAML
changes:
- version: REPLACEME

View File

@ -1677,7 +1677,7 @@ if (process.platform === 'win32') {
if (warnSimultaneousAccepts) {
process.emitWarning(
'net._setSimultaneousAccepts() is deprecated and will be removed.',
'DeprecationWarning', 'DEP00XX');
'DeprecationWarning', 'DEP0121');
warnSimultaneousAccepts = false;
}
if (handle === undefined) {
@ -1699,7 +1699,7 @@ if (process.platform === 'win32') {
if (warnSimultaneousAccepts) {
process.emitWarning(
'net._setSimultaneousAccepts() is deprecated and will be removed.',
'DeprecationWarning', 'DEP00XX');
'DeprecationWarning', 'DEP0121');
warnSimultaneousAccepts = false;
}
};

View File

@ -11,6 +11,6 @@ const {
expectWarning(
'DeprecationWarning',
'net._setSimultaneousAccepts() is deprecated and will be removed.',
'DEP00XX');
'DEP0121');
_setSimultaneousAccepts();