From 6093bfd33f6c703f71d621acf9ba5116f10912fd Mon Sep 17 00:00:00 2001 From: xortiz Date: Wed, 20 Dec 2017 06:40:03 -0500 Subject: [PATCH] tls: typo correction in error comment Old style errors are being migrated to internal/errors.js, however, due to deprecation of _tls_legacy.js, it isn't worth the effort to migrate and potentially force users to update their code for this error change. This comment clarifies the reason why this error is not migrated. Previous commit had a typo, needed to change the word depreciated to deprecated. Refs:https://github.com/nodejs/node/issues/17709#issuecomment-352790454 --- lib/_tls_legacy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/_tls_legacy.js b/lib/_tls_legacy.js index 7a3c0edfb9bc6d..fc2fb6db5d12ae 100644 --- a/lib/_tls_legacy.js +++ b/lib/_tls_legacy.js @@ -633,7 +633,7 @@ function onhandshakestart() { // callback to destroy the connection right now, it would crash and burn. setImmediate(function() { // Old-style error is not being migrated to the newer style - // internal/errors.js because _tls_legacy.js has been depreciated. + // internal/errors.js because _tls_legacy.js has been deprecated. var err = new Error('TLS session renegotiation attack detected'); if (self.cleartext) self.cleartext.emit('error', err); });