define_dictionary_property

Function define_dictionary_property 

Source
pub(crate) fn define_dictionary_property(
    cx: JSContext,
    object: Handle<'_, *mut JSObject>,
    property: &CStr,
    value: Handle<'_, Value>,
) -> Result<(), ()>
Expand description

Define an own enumerable data property with name property on object. Returns Err(()) on JSAPI failure, or null object, and Ok(()) otherwise.