@@ -554,10 +554,10 @@ NAPI_NO_RETURN void napi_fatal_error(const char* location,
554
554
555
555
- `[in] location`: Optional location at which the error occurred.
556
556
- `[in] location_len`: The length of the location in bytes, or
557
- NAPI_AUTO_LENGTH if it is null-terminated.
557
+ ` NAPI_AUTO_LENGTH` if it is null-terminated.
558
558
- `[in] message`: The message associated with the error.
559
559
- `[in] message_len`: The length of the message in bytes, or
560
- NAPI_AUTO_LENGTH if it is
560
+ ` NAPI_AUTO_LENGTH` if it is
561
561
null-terminated.
562
562
563
563
The function call does not return, the process will be terminated.
@@ -1260,7 +1260,7 @@ napi_status napi_create_function(napi_env env,
1260
1260
- `[in] utf8name`: A string representing the name of the function encoded as
1261
1261
UTF8.
1262
1262
- `[in] length`: The length of the utf8name in bytes, or
1263
- NAPI_AUTO_LENGTH if it is null-terminated.
1263
+ ` NAPI_AUTO_LENGTH` if it is null-terminated.
1264
1264
- `[in] cb`: A function pointer to the native function to be invoked when the
1265
1265
created function is invoked from JavaScript.
1266
1266
- `[in] data`: Optional arbitrary context data to be passed into the native
@@ -1493,7 +1493,7 @@ napi_status napi_create_string_latin1(napi_env env,
1493
1493
- `[in] env`: The environment that the API is invoked under.
1494
1494
- `[in] str`: Character buffer representing a ISO-8859-1-encoded string.
1495
1495
- `[in] length`: The length of the string in bytes, or
1496
- NAPI_AUTO_LENGTH if it is null-terminated.
1496
+ ` NAPI_AUTO_LENGTH` if it is null-terminated.
1497
1497
- `[out] result`: A `napi_value` representing a JavaScript String.
1498
1498
1499
1499
Returns `napi_ok` if the API succeeded.
@@ -1518,7 +1518,7 @@ napi_status napi_create_string_utf16(napi_env env,
1518
1518
- `[in] env`: The environment that the API is invoked under.
1519
1519
- `[in] str`: Character buffer representing a UTF16-LE-encoded string.
1520
1520
- `[in] length`: The length of the string in two-byte code units, or
1521
- NAPI_AUTO_LENGTH if it is null-terminated.
1521
+ ` NAPI_AUTO_LENGTH` if it is null-terminated.
1522
1522
- `[out] result`: A `napi_value` representing a JavaScript String.
1523
1523
1524
1524
Returns `napi_ok` if the API succeeded.
@@ -1542,7 +1542,7 @@ napi_status napi_create_string_utf8(napi_env env,
1542
1542
1543
1543
- `[in] env`: The environment that the API is invoked under.
1544
1544
- `[in] str`: Character buffer representing a UTF8-encoded string.
1545
- - `[in] length`: The length of the string in bytes, or NAPI_AUTO_LENGTH
1545
+ - `[in] length`: The length of the string in bytes, or ` NAPI_AUTO_LENGTH`
1546
1546
if it is null-terminated.
1547
1547
- `[out] result`: A `napi_value` representing a JavaScript String.
1548
1548
@@ -3068,7 +3068,7 @@ napi_status napi_define_class(napi_env env,
3068
3068
- `[in] utf8name`: Name of the JavaScript constructor function; this is
3069
3069
not required to be the same as the C++ class name, though it is recommended
3070
3070
for clarity.
3071
- - `[in] length`: The length of the utf8name in bytes, or NAPI_AUTO_LENGTH
3071
+ - `[in] length`: The length of the utf8name in bytes, or ` NAPI_AUTO_LENGTH`
3072
3072
if it is null-terminated.
3073
3073
- `[in] constructor`: Callback function that handles constructing instances
3074
3074
of the class. (This should be a static method on the class, not an actual
0 commit comments