JavaScript-1.5 Reference

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

Groups [ Function ]
Documents [ LXR ID Search ]
Entries [ JS_CompileScript | JS_DecompileScript | JS_DestroyScript | JS_EvaluateScript | JS_ExecuteScript ]

This page was generated by APIDOC