| ||||
SummaryDetermines the scope of access to an object. | ||||
SyntaxJSBool JS_CheckAccess(JSContext *cx, JSObject *obj, jsid id, JSAccessMode mode, jsval *vp, uintN *attrsp); | ||||
DescriptionJS_CheckAccess determines the scope of access to an object, obj , and its scope chain. Checking occurs in a specified JSContext , cx .
JS_CheckAccess returns JS_TRUE , vp points to the current value of the specified property, identified by id , and attrsp points to the value of the attribute flag for that property. On failure, JS_CheckAccess returns JS_FALSE , and both vp and attrsp are undefined.
| ||||
See Also
|