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_NewScriptObject (Function)
Summary:     Creates a new object and associates a script with it.
Syntax:
JSObject * JS_NewScriptObject(JSContext *cx, JSScript *script);

Description:
JS_NewScriptObject creates a new object, assigns script to the object, and sets the script's object to the newly created object. Object creation occurs in a specified JSContextcx.

On success, JS_NewScriptObject returns a pointer to the newly created object. On failure, it returns NULL.


See also:
JS_CompileScript
JS_DecompileScript
JS_DestroyScript
JS_EvaluateScript
JS_ExecuteScript

[sh-index] Back to list of manuals