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_GetPrototype (Function)
Summary:     Retrieves an object's prototype.
Syntax:
JSObject * JS_GetPrototype(JSContext *cx, JSObject *obj);

     Argument     Type     Description
     cx     JSContext *     Pointer to a JS context from which to derive runtime information.
                 
     obj     JSObject *     Object for which to retrieve the prototype.
                 
Description:
JS_GetPrototype retrieves the prototype object for a specified object, obj. A prototype object provides properties shared by similar JS objects.

If an object has a prototype, JS_GetPrototype returns a pointer to the prototype. If the object does not have a prototype, or the object finalize function is active, JS_GetPrototype returns NULL.


See also:
JS_SetPrototype

[sh-index] Back to list of manuals