This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it.
JSObjectOps is not a supported API. Details of the API may change from one release to the next. This documentation should be considered SpiderMonkey internals documentation, not API documentation. See bug 408416 for details.
setAttributes callbacks are called to access the attributes of a property.
typedef JSBool (*JSAttributesOp)(JSContext *cx, JSObject *obj, jsid id, JSProperty *prop, unsigned int *attrsp);
||Pointer to the JS context in which the property access is happening.|
||The object whose property attributes are being accessed.|
||The name or index of the property whose attributes are being accessed.|
||The property whose attributes are being accessed. This may be
||In/out parameter. See the Description section below.|
Get or set attributes of the property
JS_FALSE on error or exception, else
JS_TRUE with current attributes in
prop is non-null, it must come from the
*propp out parameter of a prior
For more information on property attributes, see