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_GetConstructor (Function)
Summary:     Retrieves the constructor for an object.
Syntax:
JSObject * JS_GetConstructor(JSContext *cx, JSObject *proto);

     Argument     Type     Description
     cx     JSContext *     Pointer to a JS context from which to derive runtime information.
                 
     proto     JSObject *     Pointer to the object for which to retrieve a constructor.
                 
Description:
JS_GetConstructor retrieves the constructor for a specified object, proto. The constructor is a function that builds the object. If successful, JS_GetConstructor returns a pointer to the constructor object.

If proto does not have any properties, JS_GetConstructor returns NULL. If proto has properties, but it does not have an associated constructor function, JS_GetConstructor reports the lack of a constructor function and then returns NULL.


See also:
JS_GetParent
JS_GetPrototype

[sh-index] Back to list of manuals