summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2017-12-09 05:41:22 +0100
committerRuben Bridgewater <ruben@bridgewater.de>2017-12-12 12:51:03 -0200
commitd11f7d54f35af093efbee208b7920c158cfc2c72 (patch)
treebc208f1b2656b807ea4afa2dbed80f9e97cd618e /lib
parent727339e9c276748d7b4efa066b72e05a1d60a4b9 (diff)
downloadandroid-node-v8-d11f7d54f35af093efbee208b7920c158cfc2c72.tar.gz
android-node-v8-d11f7d54f35af093efbee208b7920c158cfc2c72.tar.bz2
android-node-v8-d11f7d54f35af093efbee208b7920c158cfc2c72.zip
tls: use correct class name in deprecation message
`tls.Socket` does not exist, and the deprecation message should refer to `tls.TLSSocket` (like the documentation for the deprecation message already does). PR-URL: https://github.com/nodejs/node/pull/17561 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Jon Moss <me@jonathanmoss.me> Reviewed-By: Timothy Gu <timothygu99@gmail.com> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Diffstat (limited to 'lib')
-rw-r--r--lib/_tls_legacy.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/_tls_legacy.js b/lib/_tls_legacy.js
index 07b95546b3..d65da58e8c 100644
--- a/lib/_tls_legacy.js
+++ b/lib/_tls_legacy.js
@@ -949,6 +949,6 @@ module.exports = {
createSecurePair:
internalUtil.deprecate(createSecurePair,
'tls.createSecurePair() is deprecated. Please use ' +
- 'tls.Socket instead.', 'DEP0064'),
+ 'tls.TLSSocket instead.', 'DEP0064'),
pipe
};