Function mozjs_sys::jsapi::JS_DefinePropertyById1

source ยท
pub unsafe extern "C" fn JS_DefinePropertyById1(
    cx: *mut JSContext,
    obj: Handle<*mut JSObject>,
    id: Handle<jsid>,
    desc: Handle<PropertyDescriptor>,
) -> bool
Expand description

Define a property on obj, throwing a TypeError if the attempt fails. This is the C++ equivalent of Object.defineProperty(obj, id, desc).