Function mozjs::jsapi::IsSetObject

source ยท
pub unsafe extern "C" fn IsSetObject(
    cx: *mut JSContext,
    obj: Handle<*mut JSObject>,
    isSet: *mut bool,
) -> bool
Expand description

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

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