JSObjectGetPrototype

Function JSObjectGetPrototype 

Source
pub unsafe extern "C-unwind" fn JSObjectGetPrototype(
    ctx: JSContextRef,
    object: JSObjectRef,
) -> JSValueRef
Available on crate features JSBase and JSObjectRef only.
Expand description

Gets an object’s prototype.

Parameter ctx: The execution context to use.

Parameter object: A JSObject whose prototype you want to get.

Returns: A JSValue that is the object’s prototype.

§Safety

  • ctx must be a valid pointer.
  • object must be a valid pointer.