Function JSValueToObject

Source
pub unsafe extern "C" fn JSValueToObject(
    ctx: JSContextRef,
    value: JSValueRef,
    exception: *mut JSValueRef,
) -> JSObjectRef
Expand description

Converts a JavaScript value to object and returns the resulting object.

  • ctx: The execution context to use.
  • value: The JSValueRef to convert.
  • exception: A pointer to a JSValueRef in which to store an exception, if any. Pass NULL if you do not care to store an exception.

Returns the JSObjectRef result of conversion, or NULL if an exception is thrown.