Description
JS_DefineProperties creates one or more properties in a specified object, obj . ps is a pointer to the first element of an array of JSPropertySpec structures. Each array element defines a single property: its name, id, flags, and getProperty and setProperty methods. The name field of the last array element must contain zero-valued members. JS_DefineProperties creates one property for each element in the array with a non-zero name field.
If successful, JS_DefineProperties returns JS_TRUE , indicating it has created all properties listed in the array. Otherwise it returns JS_FALSE .
|