diff options
-rw-r--r-- | doc/api/deprecations.md | 4 | ||||
-rw-r--r-- | lib/net.js | 4 | ||||
-rw-r--r-- | test/parallel/test-net-deprecated-setsimultaneousaccepts.js | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/doc/api/deprecations.md b/doc/api/deprecations.md index 15199b9ebe..681fac92de 100644 --- a/doc/api/deprecations.md +++ b/doc/api/deprecations.md @@ -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 diff --git a/lib/net.js b/lib/net.js index d4b8bfcc2a..3fec2c7dde 100644 --- a/lib/net.js +++ b/lib/net.js @@ -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; } }; diff --git a/test/parallel/test-net-deprecated-setsimultaneousaccepts.js b/test/parallel/test-net-deprecated-setsimultaneousaccepts.js index 6d1d62e6cb..3778a9650f 100644 --- a/test/parallel/test-net-deprecated-setsimultaneousaccepts.js +++ b/test/parallel/test-net-deprecated-setsimultaneousaccepts.js @@ -11,6 +11,6 @@ const { expectWarning( 'DeprecationWarning', 'net._setSimultaneousAccepts() is deprecated and will be removed.', - 'DEP00XX'); + 'DEP0121'); _setSimultaneousAccepts(); |