pub unsafe extern "C" fn JSObjectMakeDate(
ctx: JSContextRef,
argumentCount: usize,
arguments: *const JSValueRef,
exception: *mut JSValueRef,
) -> JSObjectRef
Expand description
Creates a JavaScript Date
object, as if by invoking the
built-in Date
constructor.
ctx
: The execution context to use.argumentCount
: An integer count of the number of arguments inarguments
.arguments
: AJSValueRef
array of arguments to pass to theDate
constructor. PassNULL
ifargumentCount
is0
.exception
: A pointer to aJSValueRef
in which to store an exception, if any. PassNULL
if you do not care to store an exception.
Returns a JSObjectRef
that is a Date
.