lib: assign missed deprecation code
Refs: https://github.com/nodejs/node/pull/26245 PR-URL: https://github.com/nodejs/node/pull/26492 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
parent
0fa11654c7
commit
76e67e9884
@ -2349,8 +2349,8 @@ Type: Runtime
|
||||
|
||||
This property is a reference to the instance itself.
|
||||
|
||||
<a id="DEP0XXX"></a>
|
||||
### DEP0XXX: require('\_stream\_wrap')
|
||||
<a id="DEP0125"></a>
|
||||
### DEP0125: require('\_stream\_wrap')
|
||||
<!-- YAML
|
||||
changes:
|
||||
- version: REPLACEME
|
||||
|
@ -2,4 +2,4 @@
|
||||
|
||||
module.exports = require('internal/js_stream_socket');
|
||||
process.emitWarning('The _stream_wrap module is deprecated.',
|
||||
'DeprecationWarning', 'DEP0XXX');
|
||||
'DeprecationWarning', 'DEP0125');
|
||||
|
@ -5,6 +5,6 @@ const common = require('../common');
|
||||
// _stream_wrap is deprecated.
|
||||
|
||||
common.expectWarning('DeprecationWarning',
|
||||
'The _stream_wrap module is deprecated.', 'DEP0XXX');
|
||||
'The _stream_wrap module is deprecated.', 'DEP0125');
|
||||
|
||||
require('_stream_wrap');
|
||||
|
Loading…
x
Reference in New Issue
Block a user