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 JSContext, cx.
On success, JS_NewScriptObject returns a pointer to the newly created object. On failure, it returns NULL.
See also:
|
|
|