-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net: deprecate _setSimultaneousAccepts() undocumented function
This is an undocumented utility function that is of questionable utility. Fixes: #18391
- Loading branch information
Showing
4 changed files
with
48 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
test/parallel/test-net-deprecated-setsimultaneousaccepts.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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(); |