napi_status napi_create_object(napi_env env, napi_value* result)
[in] env: The environment that the API is invoked under.[out] result: Anapi_valuerepresenting a JavaScriptObject.
Returns napi_ok if the API succeeded.
This API allocates a default JavaScript Object.
It is the equivalent of doing new Object() in JavaScript.
The JavaScript Object type is described in [Section 6.1.7][] of the
ECMAScript Language Specification.
