From b16e79e05b90589669ef87b5528ee143c9d086cc Mon Sep 17 00:00:00 2001 From: Arkerone Date: Wed, 7 Apr 2021 10:13:51 +0200 Subject: [PATCH] tls: fix typo `byteLenth` -> `byteLength`. PR-URL: https://github.com/nodejs/node/pull/38129 Reviewed-By: Antoine du Hamel Reviewed-By: Luigi Pinca Reviewed-By: Richard Lau Reviewed-By: Darshan Sen Reviewed-By: James M Snell Reviewed-By: Colin Ihrig --- lib/_tls_common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/_tls_common.js b/lib/_tls_common.js index d6b989c3fd52ad..5b13d8c79bc3e5 100644 --- a/lib/_tls_common.js +++ b/lib/_tls_common.js @@ -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);