Skip to content

Commit

Permalink
lib: assign missed deprecation code
Browse files Browse the repository at this point in the history
Refs: #26245

PR-URL: #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>
  • Loading branch information
addaleax committed Mar 7, 2019
1 parent 0fa1165 commit 76e67e9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions doc/api/deprecations.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/_stream_wrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

module.exports = require('internal/js_stream_socket');
process.emitWarning('The _stream_wrap module is deprecated.',
'DeprecationWarning', 'DEP0XXX');
'DeprecationWarning', 'DEP0125');
2 changes: 1 addition & 1 deletion test/parallel/test-warn-stream-wrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');

0 comments on commit 76e67e9

Please sign in to comment.