Skip to content

Commit

Permalink
tls: fix typo
Browse files Browse the repository at this point in the history
`byteLenth` -> `byteLength`.

PR-URL: #38129
Reviewed-By: Antoine du Hamel <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Richard Lau <[email protected]>
Reviewed-By: Darshan Sen <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
  • Loading branch information
arkerone authored and aduh95 committed Apr 8, 2021
1 parent 7869761 commit b16e79e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/_tls_common.js
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ exports.createSecureContext = function createSecureContext(options) {
if (ticketKeys.byteLength !== 48) {
throw new ERR_INVALID_ARG_VALUE(
'options.ticketKeys',
ticketKeys.byteLenth,
ticketKeys.byteLength,
'must be exactly 48 bytes');
}
c.context.setTicketKeys(ticketKeys);
Expand Down

0 comments on commit b16e79e

Please sign in to comment.