Description
JS_GetPropertyAttributes retrieves 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 a pointer to the unsigned integer storage area into which to retrieve the attributes.
If JS_GetPropertyAttributes cannot locate an object with the specified property, it returns JS_FALSE , and both attrsp and foundp are undefined.
If the specified property or the specified object does not exist, foundp is set to JS_FALSE . If the property exists, but belongs to another object, JS_GetPropertyAttributes then returns JS_FALSE , and attrsp is undefined. If the property exists and it belongs to the object you specify, then foundp is set to JS_TRUE . If JS_GetPropertyAttributes can actually read the current property values, it returns JS_TRUE . Otherwise, it returns JS_FALSE .
|