From bbfa58691e86a9011c2d0e8a067679d7d868b2ee Mon Sep 17 00:00:00 2001 From: Caio Agiani Date: Wed, 2 Feb 2022 09:14:59 -0300 Subject: [PATCH] src: fix typo in js_native_api_v8.cc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/41764 Reviewed-By: Mestery Reviewed-By: Anna Henningsen Reviewed-By: Darshan Sen Reviewed-By: Richard Lau Reviewed-By: Tobias Nießen Reviewed-By: Colin Ihrig Reviewed-By: Mohammed Keyvanzadeh Reviewed-By: Luigi Pinca Reviewed-By: Jiawen Geng --- src/js_native_api_v8.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js_native_api_v8.cc b/src/js_native_api_v8.cc index 699bc0f68e4a17..1c29c43836a0c3 100644 --- a/src/js_native_api_v8.cc +++ b/src/js_native_api_v8.cc @@ -16,7 +16,7 @@ #define CHECK_TO_NUMBER(env, context, result, src) \ CHECK_TO_TYPE((env), Number, (context), (result), (src), napi_number_expected) -// n-api defines NAPI_AUTO_LENGHTH as the indicator that a string +// n-api defines NAPI_AUTO_LENGTH as the indicator that a string // is null terminated. For V8 the equivalent is -1. The assert // validates that our cast of NAPI_AUTO_LENGTH results in -1 as // needed by V8.