JSValueToObject top-level property

JSObjectRef Function(JSContextRef ctx, JSValueRef value, Pointer<JSValueRef> exception) JSValueToObject
final

Converts a JavaScript value to object and returns the resulting object. ctx (JSContextRef) The execution context to use. value (JSValueRef) The JSValue to convert. exception (JSValueRef*) A pointer to a JSValueRef in which to store an exception, if any. Pass NULL if you do not care to store an exception. @result (JSObjectRef) The JSObject result of conversion, or NULL if an exception is thrown.

Implementation

final JSObjectRef Function(
  JSContextRef ctx,
  JSValueRef value,
  Pointer<JSValueRef> exception,
)
JSValueToObject =
    kLookup<
      NativeFunction<
        JSObjectRef Function(JSContextRef, JSValueRef, Pointer<JSValueRef>)
      >
    >('JSValueToObject').asFunction();