Skip to main content

JS_DefinePropertyGetSet

Function JS_DefinePropertyGetSet 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn JS_DefinePropertyGetSet( ctx: *mut JsContext, this_obj: JsValue, prop: Atom, getter: JsValue, setter: JsValue, flags: c_int, ) -> c_int
Expand description

JS_DefinePropertyGetSet: the accessor-only spelling.

§Safety

As JS_DefineProperty; getter and setter’s references are consumed.