Function set_dictionary_property

Source
pub fn set_dictionary_property(
    cx: JSContext,
    object: HandleObject<'_>,
    property: &str,
    value: HandleValue<'_>,
) -> Result<(), ()>
Expand description

Set the property with name property from object. Returns Err(()) on JSAPI failure, or null object, and Ok(()) otherwise