| ||||||||||||||||||
SummarySets the attributes for a specified property. | ||||||||||||||||||
SyntaxJSBool JS_SetPropertyAttributes(JSContext *cx, JSObject *obj, const char *name, uintN attrs, JSBool *foundp);
| ||||||||||||||||||
DescriptionJS_SetPropertyAttributes sets the attributes for a specified property, name. cx is the context, and obj is a pointer to the object that owns the property. attrsp is an unsigned integer containing the attribute value to set, and can contain 0 or more of the following values OR'd:
JSPROP_READONLY: property is read-only.
JS_SetPropertyAttributes cannot locate an object with the specified property, it returns JS_FALSE, and foundp is undefined.
If the specified property or the specified object does not exist,
| ||||||||||||||||||
See Also
|