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

     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.
                 
     id     jsval     The ID for the stub.
                 
Description:
JS_ResolveStub provides a convenient way to pass a resolution object to an API function that requires one without requiring you to create an actual resolution object. This is especially useful for internal operations, such as class definitions. A resolution stub is a placeholder for an actual resolution assignment function.

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


See also:
JS_ConvertStub
JS_EnumerateStub
JS_FinalizeStub
JS_PropertyStub

[sh-index] Back to list of manuals