diff options
author | James M Snell <jasnell@gmail.com> | 2018-10-19 11:21:42 -0700 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2018-10-25 09:03:32 -0700 |
commit | 1523111250788e0e1651d30c1fd506e9ef4ac7f0 (patch) | |
tree | 5935190f25093fb28173a4323dc971336edd32dc /test | |
parent | 24cb1f33d85fbb8e5cc9c10f488766ca8a21ddca (diff) | |
download | android-node-v8-1523111250788e0e1651d30c1fd506e9ef4ac7f0.tar.gz android-node-v8-1523111250788e0e1651d30c1fd506e9ef4ac7f0.tar.bz2 android-node-v8-1523111250788e0e1651d30c1fd506e9ef4ac7f0.zip |
net: deprecate _setSimultaneousAccepts() undocumented function
This is an undocumented utility function that is of questionable
utility.
Fixes: https://github.com/nodejs/node/issues/18391
PR-URL: https://github.com/nodejs/node/pull/23760
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/parallel/test-net-deprecated-setsimultaneousaccepts.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/parallel/test-net-deprecated-setsimultaneousaccepts.js b/test/parallel/test-net-deprecated-setsimultaneousaccepts.js new file mode 100644 index 0000000000..6d1d62e6cb --- /dev/null +++ b/test/parallel/test-net-deprecated-setsimultaneousaccepts.js @@ -0,0 +1,16 @@ +// Flags: --no-warnings +'use strict'; + +const { + expectWarning +} = require('../common'); +const { + _setSimultaneousAccepts +} = require('net'); + +expectWarning( + 'DeprecationWarning', + 'net._setSimultaneousAccepts() is deprecated and will be removed.', + 'DEP00XX'); + +_setSimultaneousAccepts(); |