Function js::jsapi::JS_ObjectIsRegExp [] [src]

pub unsafe extern "C" fn JS_ObjectIsRegExp(
    cx: *mut JSContext,
    obj: HandleObject,
    isRegExp: *mut bool
) -> bool

Returns true and sets |*isRegExp| indicating whether |obj| is a RegExp object or a wrapper around one, otherwise returns false on failure.

This method returns true with |*isRegExp == false| when passed a proxy whose target is a RegExp, or when passed a revoked proxy.