| |||||||||||||||
SummaryDeprecated. Create an aliased index entry for an existing element or numeric property of a native object. | |||||||||||||||
SyntaxJSBool JS_AliasElement(JSContext *cx, JSObject *obj, const char *name, jsint alias);
| |||||||||||||||
DescriptionJS_AliasElement assigns an alternate index number for an element or numeric property associated with a native object. obj is the object to which the element belongs. name is the element's current index in the object, and alias is the alternate index to assign to the element.
| |||||||||||||||
NotesThis feature is deprecated, meaning that it is currently supported only for backward compatibility with existing applications. Future versions of the engine may no longer support this function.
An alias does not replace an element's current index number; it supplements it, providing a second way to reference the element. If the alias is successfully created and associated with the property,
If the property name you specify does not exist, Once you create an alias, you can reassign it to other elements as needed. Aliases can also be deleted. Deleting an alias does not delete the element to which it refers.
| |||||||||||||||
See Also
|