Type Definition js::jsapi::JSSetterOp [] [src]

type JSSetterOp = Option<unsafe extern "C" fn(cx: *mut JSContext, obj: HandleObject, id: HandleId, vp: MutableHandleValue, result: *mut ObjectOpResult) -> bool>;

Set a property named by id in obj, treating the assignment as strict mode code if strict is true. Note the jsid id type -- id may be a string (Unicode property identifier) or an int (element index). The *vp out parameter, on success, is the new property value after the set.