AcornSearch - Acorn and RISC OS information searching
RISC OS Search
containing
"Nutty quip goes here!"
Home  |  About  |  Filebase Archive  |  StrongHelp Manuals  |  Newsgroups  |  Module Database
Entry:     JS_AliasElement (Function)
Summary:     Deprecated. Create an aliased index entry for an existing element or numeric property of a native object.
Syntax:
JSBool JS_AliasElement(JSContext *cx, JSObject *obj,
const char *name, jsint alias);

     Argument     Type     Description
     cx     JSContext *     Pointer to a JS context from which to derive runtime information.
                 
     obj     JSObject *     Object for which to create the alias.
                 
     name     const char *     Name of the element for which to create an alias. This name corresponds to a string representation of the element's current index number.
                 
     alias     jsint     Alias number to assign to the element.
                 
Description:
JS_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.


See also:
JS_DefineElement
JS_DeleteElement
JS_GetArrayLength
JS_GetElement
JS_IsArrayObject
JS_LookupElement
JS_NewArrayObject
JS_SetArrayLength
JS_SetElement

[sh-index] Back to list of manuals