From 000048f08c828100b4f350118b7e9eab24ac388d Mon Sep 17 00:00:00 2001 From: Arkerone Date: Wed, 7 Apr 2021 10:13:51 +0200 Subject: [PATCH] lib: fix typo in lib/_tls_common.js change "byteLenth" to "byteLength" --- 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 d6b989c3fd52ad3..5b13d8c79bc3e57 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);