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