Skip to content

Commit 6093bfd

Browse files
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:#17709 (comment)
1 parent c9fdd56 commit 6093bfd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/_tls_legacy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,7 @@ function onhandshakestart() {
633633
// callback to destroy the connection right now, it would crash and burn.
634634
setImmediate(function() {
635635
// Old-style error is not being migrated to the newer style
636-
// internal/errors.js because _tls_legacy.js has been depreciated.
636+
// internal/errors.js because _tls_legacy.js has been deprecated.
637637
var err = new Error('TLS session renegotiation attack detected');
638638
if (self.cleartext) self.cleartext.emit('error', err);
639639
});

0 commit comments

Comments
 (0)