Function mozjs::jsapi::ObjectIsDate

source ·
pub unsafe extern "C" fn ObjectIsDate(
    cx: *mut JSContext,
    obj: Handle<*mut JSObject>,
    isDate: *mut bool
) -> bool
Expand description

On success, returns true, setting |*isDate| to true if |obj| is a Date object or a wrapper around one, or to false if not. Returns false on failure.

This method returns true with |*isDate == false| when passed an ES6 proxy whose target is a Date, or when passed a revoked proxy.