node_api_set_prototype
functionexperimentaljs_native_api.hThis API sets the prototype of the Object passed in.
Stability: 1 - Experimental
napi_status node_api_set_prototype(napi_env env,
napi_value object,
napi_value value);
[in] env: The environment that the Node-API call is invoked under.[in] object: The object on which to set the prototype.[in] value: The prototype value.
Returns napi_ok if the API succeeded.
This API sets the prototype of the Object passed in.