summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2019-03-07 12:31:59 +0100
committerAnna Henningsen <anna@addaleax.net>2019-03-07 15:48:55 +0100
commit76e67e98843978223a74b177f4e53411caf95516 (patch)
treee8b2443992a2343d8b935ac9e1d388ac1055affe
parent0fa11654c72db250ae67046090c2413d5323141e (diff)
downloadandroid-node-v8-76e67e98843978223a74b177f4e53411caf95516.tar.gz
android-node-v8-76e67e98843978223a74b177f4e53411caf95516.tar.bz2
android-node-v8-76e67e98843978223a74b177f4e53411caf95516.zip
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>
-rw-r--r--doc/api/deprecations.md4
-rw-r--r--lib/_stream_wrap.js2
-rw-r--r--test/parallel/test-warn-stream-wrap.js2
3 files changed, 4 insertions, 4 deletions
diff --git a/doc/api/deprecations.md b/doc/api/deprecations.md
index dbd9e8648c..24d4a3ea32 100644
--- a/doc/api/deprecations.md
+++ b/doc/api/deprecations.md
@@ -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
diff --git a/lib/_stream_wrap.js b/lib/_stream_wrap.js
index 227548e59d..904128a382 100644
--- a/lib/_stream_wrap.js
+++ b/lib/_stream_wrap.js
@@ -2,4 +2,4 @@
module.exports = require('internal/js_stream_socket');
process.emitWarning('The _stream_wrap module is deprecated.',
- 'DeprecationWarning', 'DEP0XXX');
+ 'DeprecationWarning', 'DEP0125');
diff --git a/test/parallel/test-warn-stream-wrap.js b/test/parallel/test-warn-stream-wrap.js
index ffc2c510d0..837a6e880b 100644
--- a/test/parallel/test-warn-stream-wrap.js
+++ b/test/parallel/test-warn-stream-wrap.js
@@ -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');