napi_status napi_get_prototype(napi_env env,napi_value object,napi_value* result)
[in] env: The environment that the API is invoked under.[in] object:napi_valuerepresenting JavaScriptObjectwhose prototype to return. This returns the equivalent ofObject.getPrototypeOf(which is not the same as the function’sprototypeproperty).[out] result:napi_valuerepresenting prototype of the given object.
Returns napi_ok if the API succeeded.
