mirror of
https://github.com/nodejs/node.git
synced 2026-11-26 21:58:26 -05:00
src: fix typo in js_native_api_v8.cc
PR-URL: https://github.com/nodejs/node/pull/41764 Reviewed-By: Mestery <mestery@protonmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
This commit is contained in:
1 parent
ea966404ad
commit
bbfa58691e
1 file changed
+1
-1
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user