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_ExecuteScript (Function)
Summary:     Executes a compiled script.
Syntax:
JSBool JS_ExecuteScript(JSContext *cx, JSObject *obj,
JSScript *script, jsval *rval);

     Argument     Type     Description
     cx     JSContext *     JS context in which the script executes.
                 
     obj     JSObject *     Object with which the script is associated.
                 
     script     JSScript *     Previously compiled script to execute.
                 
     rval     jsval *     Pointer to the value from the last executed expression statement processed in the script.
                 
Description:
JS_ExecuteScript executes a previously compiled script, script. On successful completion, rval is a pointer to a variable that holds the value from the last executed expression statement processed in the script.

If a script executes successfully, JS_ExecuteScript returns JS_TRUE. Otherwise it returns JS_FALSE. On failure, your application should assume that rval is undefined.


See also:
JS_CompileFile
JS_CompileScript
JS_DecompileScript
JS_DestroyScript
JS_EvaluateScript

[sh-index] Back to list of manuals