Skip to content

Commit

Permalink
tls: typo correction in error comment
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
Xavier-J-Ortiz committed Dec 20, 2017
1 parent c9fdd56 commit 6093bfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/_tls_legacy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down

0 comments on commit 6093bfd

Please sign in to comment.