Entry: JS_AliasProperty (Function)
Summary: Deprecated. Create an alias for a native property.
Syntax:
JSBool JS_AliasProperty(JSContext *cx, JSObject *obj,
const char *name, const char *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 property for which to create an alias.
alias const char * Alias name to assign to the property.
Description:
JS_AliasProperty assigns an alternate name for a property associated with a native object. obj is the object to which the property belongs. name is the property's current name in the object, and alias is the alternate name to assign to the property.
See also:
|
|
|