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_EnumerateStub (Function)
Summary:     Provides a dummy enumeration object for API routines that requires it.
Syntax:
JSBool JS_EnumerateStub(JSContext *cx, JSObject *obj);

     Argument     Type     Description
     cx     JSContext *     Pointer to a JS context from which to derive runtime information.
                 
     obj     JSObject *     Pointer to the object for this stub.
                 
Description:
JS_EnumerateStub provides a convenient way to pass an enumeration object to an API function that requires one without requiring you to create an actual enumeration object. This is especially useful for internal operations, such as class definitions. An enumeration stub is a placeholder for an actual enumeration function.

As designed, JS_EnumerationStub does not use the arguments you pass to it, and simply returns JS_TRUE.


See also:
JS_ConvertStub
JS_FinalizeStub
JS_PropertyStub
JS_ResolveStub

[sh-index] Back to list of manuals