JavaScript-1.5 Reference

JSPROP_ENUMERATE Macro

Summary

Public.Flag that indicates a property is visible to for and in loops.

Syntax

JSPROP_ENUMERATE

Description

JSPROP_ENUMERATE is a flag value that indicates a property belonging to a JS object is visible to for and in loops. JSPROP_ENUMERATE is used to set or clear the flags field in a JSPropertySpec structure so that a property can be made visible or invisible to loops.

Example

The following code fragment illustrates how JSPROP_ENUMERATE can be set for a property structure before you call JS_DefineProperties:
JSPropertySpec MyProperty;
.
.
.
MyProperty.flags = MyProperty.flags | JSPROP_ENUMERATE;

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

Groups [ Macro ]
Documents [ LXR ID Search ]
Entries [ JSPROP_EXPORTED | JSPROP_INDEX | JSPROP_PERMANENT | JSPROP_READONLY | JSPropertySpec | JS_DefineProperties | JS_DefineProperty ]

This page was generated by APIDOC