diff --git a/lib/_tls_legacy.js b/lib/_tls_legacy.js index 87ccb081eea8ef..363589f0533110 100644 --- a/lib/_tls_legacy.js +++ b/lib/_tls_legacy.js @@ -608,6 +608,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); });