From bb56ffaa6fda060e372527ade172de5a1c656ccf Mon Sep 17 00:00:00 2001 From: Nicola Del Gobbo Date: Mon, 15 Mar 2021 17:08:12 +0100 Subject: [PATCH] doc: fix documentation for object api PR-URL: https://github.com/nodejs/node-addon-api/pull/931 Reviewed-By: Michael Dawson --- doc/object.md | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/doc/object.md b/doc/object.md index e1ca5f814..3ce7f75eb 100644 --- a/doc/object.md +++ b/doc/object.md @@ -56,16 +56,7 @@ Napi::Object::Object(napi_env env, napi_value value); ``` - `[in] env`: The `napi_env` environment in which to construct the Value object. -- `[in] value`: The C++ primitive from which to instantiate the Value. `value` may be any of: - - bool - - Any integer type - - Any floating point type - - const char* (encoded using UTF-8, null-terminated) - - const char16_t* (encoded using UTF-16-LE, null-terminated) - - std::string (encoded using UTF-8) - - std::u16string - - Napi::Value - - napi_value +- `[in] value`: The `napi_value` which is a handle for a JavaScript object. Creates a non-empty `Napi::Object` instance.