| ||||||||||||||||||
SummaryRemoves a specified Unicode-encoded property from an object. | ||||||||||||||||||
SyntaxJSBool JS_DeleteUCProperty2(JSContext *cx, JSObject *obj, const jschar *name, size_t namelen, jsval *rva);
| ||||||||||||||||||
DescriptionJS_DeleteUCProperty2 removes a specified property, name, from an object, obj, and stores a pointer to the deleted property in rval. If rval is NULL, the property is deleted. namelen is the size, in bytes, of the property name to delete. 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_DeleteUCProperty2 returns JS_TRUE. Otherwise it returns JS_FALSE.
| ||||||||||||||||||
NotesPer the ECMA standard,JS_DeleteUCProperty2 removes read-only properties from objects as long as those properties are not also permanent.
For JavaScript 1.2 and earlier, if failure occurs because you attempt to delete a permanent property,
To remove all properties from an object, call
| ||||||||||||||||||
See Also
|