Function javascriptcore_sys::JSObjectCallAsConstructor
[−]
[src]
pub unsafe extern "C" fn JSObjectCallAsConstructor(
ctx: JSContextRef,
object: JSObjectRef,
argumentCount: usize,
arguments: *const JSValueRef,
exception: *mut JSValueRef
) -> JSObjectRef
Calls an object as a constructor.
ctx: The execution context to use.object: TheJSObjectto call as a constructor.argumentCount: An integer count of the number of arguments inarguments.arguments: AJSValuearray of arguments to pass to the constructor. PassNULLifargumentCountis0.exception: A pointer to aJSValueRefin which to store an exception, if any. PassNULLif you do not care to store an exception.
Returns the JSObject that results from calling object as a constructor,
or NULL if an exception is thrown or object is not a constructor.