Closed
Description
napi_get_value_string_*
say e.g.:
[out] result
: Number of bytes copied into the buffer including the null. terminator.
However, the actual implementation in Node returns the number of bytes excluding the null terminator (so for an empty string, it will return 0
and not 1
).
Not sure if it's implementation or documentation issue, or I was just confused by the wording. cc @nodejs/n-api