Contents

JSValueToObject(_:_:_:)

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

Declaration

func JSValueToObject(_ ctx: JSContextRef!, _ value: JSValueRef!, _ exception: UnsafeMutablePointer<JSValueRef?>!) -> JSObjectRef!

Parameters

  • ctx:

    The execution context to use.

  • value:

    The Jsvalueref to convert.

  • exception:

    A pointer to a Jsvalueref to store an exception in, if any. Pass NULL to discard any exception.

Return Value

The JSObjectRef result of conversion, or NULL if the system throws an exception.

See Also

Converting to Primitive Values