Objects are made up of the following parts:
- Most objects have a prototype. See
JS_GetPrototype. An object inherits properties, including methods, from its prototype (which is another object).
- Most objects have a parent. See
- Almost every object can have any number of its own properties. The term own property refers to a property of an object that is not inherited from its prototype. Each property has a name, a getter, a setter, and property attributes. Most properties also have a stored value. See
- Every object is associated with a
JSObjectOps. These are C/C++ hooks and metadata that govern various aspects of the object's behavior and describe its layout in memory.