Remove a specified numeric property from an object.
| || ||The context in which to delete the property. Requires request. In a |
| || ||The object from which to delete the property.|
| || ||Index of the property to delete.|
| || ||Out parameter. On success, |
JS_DeleteElement2 removes a specified numeric property,
index, from an object,
rval is non-null, the final stored value of the deleted property is stored in
obj inherits the specified property from a prototype, the property is removed from the object, but not from the prototype. If deletion is successful,
JS_TRUE. Otherwise it returns
Per the ECMA standard,
JS_DeleteElement2 removes read-only properties from objects as long as they are not also permanent.
JS_DeleteElement2 reports the error and returns
*rval will receive the stored value of the property that was not deleted.
To remove all properties from an object, call