Entry: JS_DeleteProperty (Function)
Summary: Removes a specified property from an object.
Syntax:
JSBool JS_DeleteProperty(JSContext *cx, JSObject *obj,
const char *name);
Argument Type Description
cx JSContext * Pointer to a JS context from which to derive runtime information.
obj JSObject * Object from which to delete a property.
name const char * Name of the property to delete.
Description:
JS_DeleteProperty removes a specified property, name, from an object, obj. If an object references a property belonging to a prototype, the property reference is removed from the object, but the prototype's property is not deleted. If deletion is successful, JS_DeleteProperty returns JS_TRUE. Otherwise it returns JS_FALSE.
See also:
|
|
|