pub unsafe fn define_getter_setter(
    context: *mut JSContext,
    obj_ref: &QuickJsValueAdapter,
    prop_name: &str,
    getter_func_ref: &QuickJsValueAdapter,
    setter_func_ref: &QuickJsValueAdapter,
) -> Result<(), JsError>
Expand description

define a getter/setter property

§Safety

When passing a context pointer please make sure the corresponding QuickJsContext is still valid