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