|
Summary
Retrieves the parent object for a specified object.
|
Syntax
JSObject * JS_GetParent(JSContext *cx, JSObject *obj);
Name | Type | Description |
cx | JSContext * | Pointer to a JS context from which to derive runtime information.
|
obj | JSObject * | Object for which to retrieve the parent.
|
|
Description
JS_GetParent retrieves the parent object for a specified object, obj . If an object has a parent, JS_GetParent returns a pointer to the parent object. If the object does not have a parent, or the object finalize function is active, JS_GetParent returns NULL .
|
See Also
|