From 35a3cbb5dd2100f3a015eaf539478cfedc43901d Mon Sep 17 00:00:00 2001 From: Michael Dawson Date: Tue, 6 Jun 2017 15:27:16 -0400 Subject: [PATCH] doc: fix out of date sections in n-api doc Backport-PR-URL: https://github.com/nodejs/node/pull/19447 PR-URL: https://github.com/nodejs/node/pull/13508 Fixes: https://github.com/nodejs/node/issues/13469 Fixes: https://github.com/nodejs/node/issues/13458 Reviewed-By: Anna Henningsen Reviewed-By: Colin Ihrig Reviewed-By: Jason Ginchereau --- doc/api/n-api.md | 63 ++++++++++++++++++++---------------------------- 1 file changed, 26 insertions(+), 37 deletions(-) diff --git a/doc/api/n-api.md b/doc/api/n-api.md index 52b45187736e88..5a343ef377cfe3 100644 --- a/doc/api/n-api.md +++ b/doc/api/n-api.md @@ -1560,25 +1560,6 @@ is passed in it returns `napi_number_expected`. This API returns the C int64 primitive equivalent of the given JavaScript Number -#### *napi_get_value_string_length* - -```C -napi_status napi_get_value_string_length(napi_env env, - napi_value value, - int* result) -``` - -- `[in] env`: The environment that the API is invoked under. -- `[in] value`: `napi_value` representing JavaScript string. -- `[out] result`: Number of characters in the given JavaScript string. - -Returns `napi_ok` if the API succeeded. If a non-String `napi_value` -is passed in it returns `napi_string_expected`. - -This API returns the number of characters in the given JavaScript string. - #### *napi_get_value_string_utf8*