Entry: JS_ClearScope (Function)
Summary: Removes all properties associated with an object.
Syntax:
void JS_ClearScope(JSContext *cx, JSObject *obj);
Argument Type Description
cx JSContext * Pointer to a JS context from which to derive runtime information.
obj JSObject * Object from which to delete all properties.
Description:
JS_ClearScope removes all properties and elements from obj in a single operation. To remove a single property from an object, call JS_DeleteProperty, and to remove a single array object element, call JS_DeleteElement.
See also:
|
|
|