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