pub unsafe extern "C" fn JS_DefinePropertyById1(
    cx: *mut JSContext,
    obj: Handle<*mut JSObject>,
    id: Handle<PropertyKey>,
    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).