@@ -860,7 +860,7 @@ SemVer applying. In order to support this model with N-API, both
860
860
in internal functionality and for module specific functionality
861
861
(as its good practice), the `throw_` and `create_` functions
862
862
take an optional code parameter which is the string for the code
863
- to be added to the error object. If the optional parameter is NULL
863
+ to be added to the error object. If the optional parameter is ` NULL`
864
864
then no code will be associated with the error. If a code is provided,
865
865
the name associated with the error is also updated to be:
866
866
@@ -1058,7 +1058,7 @@ napi_status napi_get_and_clear_last_exception(napi_env env,
1058
1058
```
1059
1059
1060
1060
* `[in] env`: The environment that the API is invoked under.
1061
- * `[out] result`: The exception if one is pending, NULL otherwise.
1061
+ * `[out] result`: The exception if one is pending, ` NULL` otherwise.
1062
1062
1063
1063
Returns `napi_ok` if the API succeeded.
1064
1064
@@ -1350,7 +1350,7 @@ then be modified through [`napi_reference_ref`][] and
1350
1350
[`napi_reference_unref`][]. If an object is collected while the count
1351
1351
for a reference is 0, all subsequent calls to
1352
1352
get the object associated with the reference [`napi_get_reference_value`][]
1353
- will return NULL for the returned `napi_value`. An attempt to call
1353
+ will return ` NULL` for the returned `napi_value`. An attempt to call
1354
1354
[`napi_reference_ref`][] for a reference whose object has been collected
1355
1355
will result in an error.
1356
1356
@@ -1473,7 +1473,7 @@ Returns `napi_ok` if the API succeeded.
1473
1473
1474
1474
If still valid, this API returns the `napi_value` representing the
1475
1475
JavaScript `Object` associated with the `napi_ref`. Otherwise, result
1476
- will be NULL.
1476
+ will be ` NULL` .
1477
1477
1478
1478
### Cleanup on exit of the current Node.js instance
1479
1479
@@ -1549,7 +1549,7 @@ napi_value Init(napi_env env, napi_value exports);
1549
1549
1550
1550
The return value from `Init` is treated as the `exports` object for the module.
1551
1551
The `Init` method is passed an empty object via the `exports` parameter as a
1552
- convenience. If `Init` returns NULL, the parameter passed as `exports` is
1552
+ convenience. If `Init` returns ` NULL` , the parameter passed as `exports` is
1553
1553
exported by the module. N-API modules cannot modify the `module` object but can
1554
1554
specify anything as the `exports` property of the module.
1555
1555
@@ -2827,7 +2827,7 @@ napi_status napi_get_value_string_latin1(napi_env env,
2827
2827
2828
2828
* `[in] env`: The environment that the API is invoked under.
2829
2829
* `[in] value`: `napi_value` representing JavaScript string.
2830
- * `[in] buf`: Buffer to write the ISO-8859-1-encoded string into. If NULL is
2830
+ * `[in] buf`: Buffer to write the ISO-8859-1-encoded string into. If ` NULL` is
2831
2831
passed in, the length of the string (in bytes) is returned.
2832
2832
* `[in] bufsize`: Size of the destination buffer. When this value is
2833
2833
insufficient, the returned string will be truncated.
@@ -2856,7 +2856,7 @@ napi_status napi_get_value_string_utf8(napi_env env,
2856
2856
2857
2857
* `[in] env`: The environment that the API is invoked under.
2858
2858
* `[in] value`: `napi_value` representing JavaScript string.
2859
- * `[in] buf`: Buffer to write the UTF8-encoded string into. If NULL is passed
2859
+ * `[in] buf`: Buffer to write the UTF8-encoded string into. If ` NULL` is passed
2860
2860
in, the length of the string (in bytes) is returned.
2861
2861
* `[in] bufsize`: Size of the destination buffer. When this value is
2862
2862
insufficient, the returned string will be truncated.
@@ -2884,7 +2884,7 @@ napi_status napi_get_value_string_utf16(napi_env env,
2884
2884
2885
2885
* `[in] env`: The environment that the API is invoked under.
2886
2886
* `[in] value`: `napi_value` representing JavaScript string.
2887
- * `[in] buf`: Buffer to write the UTF16-LE-encoded string into. If NULL is
2887
+ * `[in] buf`: Buffer to write the UTF16-LE-encoded string into. If ` NULL` is
2888
2888
passed in, the length of the string (in 2-byte code units) is returned.
2889
2889
* `[in] bufsize`: Size of the destination buffer. When this value is
2890
2890
insufficient, the returned string will be truncated.
0 commit comments