Function js::jsapi::JS_ObjectIsDate
[−]
[src]
pub unsafe extern "C" fn JS_ObjectIsDate(
cx: *mut JSContext,
obj: HandleObject,
isDate: *mut bool
) -> bool
Returns true and sets |*isDate| indicating whether |obj| is a Date object or a wrapper around one, otherwise returns false on failure.
This method returns true with |*isDate == false| when passed a proxy whose target is a Date, or when passed a revoked proxy.