1. napi_status napi_get_prototype(napi_env env,
    2. napi_value object,
    3. napi_value* result)
    • [in] env: The environment that the API is invoked under.
    • [in] object: napi_value representing JavaScript Object whose prototype to return. This returns the equivalent of Object.getPrototypeOf (which is not the same as the function’s prototype property).
    • [out] result: napi_value representing prototype of the given object.

    Returns napi_ok if the API succeeded.