Function ul_sys::JSObjectCallAsConstructor[][src]

pub unsafe extern "C" fn JSObjectCallAsConstructor(
    ctx: JSContextRef,
    object: JSObjectRef,
    argumentCount: size_t,
    arguments: *const JSValueRef,
    exception: *mut JSValueRef
) -> JSObjectRef
Expand description

@function @abstract Calls an object as a constructor. @param ctx The execution context to use. @param object The JSObject to call as a constructor. @param argumentCount An integer count of the number of arguments in arguments. @param arguments A JSValue array of arguments to pass to the constructor. Pass NULL if argumentCount is 0. @param 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. @result The JSObject that results from calling object as a constructor, or NULL if an exception is thrown or object is not a constructor.