mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
c99026bdd7
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>
17 lines
295 B
JavaScript
17 lines
295 B
JavaScript
// Flags: --no-warnings
|
|
'use strict';
|
|
|
|
const {
|
|
expectWarning
|
|
} = require('../common');
|
|
const {
|
|
_setSimultaneousAccepts
|
|
} = require('net');
|
|
|
|
expectWarning(
|
|
'DeprecationWarning',
|
|
'net._setSimultaneousAccepts() is deprecated and will be removed.',
|
|
'DEP0121');
|
|
|
|
_setSimultaneousAccepts();
|