|
Summary
Flag that indicates a property is permanent and cannot be deleted.
|
Syntax
JSPROP_PERMANENT
|
Description
JSPROP_PERMANENT is a flag value that indicates that the property belonging to a JS object is a "permanent" property, one that cannot be deleted from the object at run time. Attempting to delete a permanent property is JavaScript 1.2 or lower results in an error. In JavaScript 1.3 and ECMA-Script, such deletion attempts are ignored. You can, however, always check the flags fields to determine if a property is permanent.
|
Notes
Property flags cannot be changed at run time. Instead, you either pass a set of
flags as an argument to JS_DefineProperty to create a single property with
fixed flag values, or you set property flags in a JSPropertySpec struct which is
then passed to the JS_DefineProperties function to create multiple
properties on a single object.
|
See Also
|