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:
Anna Henningsen 2019-03-07 12:31:59 +01:00
parent 0fa11654c7
commit 76e67e9884
No known key found for this signature in database
GPG Key ID: 9C63F3A6CD2AD8F9
3 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -2,4 +2,4 @@
module.exports = require('internal/js_stream_socket');
process.emitWarning('The _stream_wrap module is deprecated.',
'DeprecationWarning', 'DEP0XXX');
'DeprecationWarning', 'DEP0125');

View File

@ -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');