diff --git a/lib/_tls_legacy.js b/lib/_tls_legacy.js index c2bbb973cfbe31..7beec4805c1b8b 100644 --- a/lib/_tls_legacy.js +++ b/lib/_tls_legacy.js @@ -632,6 +632,8 @@ function onhandshakestart() { // state machine and OpenSSL is not re-entrant. We cannot allow the user's // 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 deprecated. var err = new Error('TLS session renegotiation attack detected'); if (self.cleartext) self.cleartext.emit('error', err); });