Function mozjs::jsapi::JS::IsMapObject

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

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

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