| |||||||||||||||||||||
SummaryCompiles a Unicode-encoded script for execution. | |||||||||||||||||||||
SyntaxJSScript * JS_CompileUCScript(JSContext *cx, JSObject *obj, const jschar *chars, size_t length, const char *filename, uintN lineno);
| |||||||||||||||||||||
DescriptionJS_CompileUCScript compiles a script using a Unicode character set, chars , for execution. The script is associated with a JS object. chars is the Unicode string containing the text of the script. length indicates the size of the script in characters.
If a script compiles successfully,
| |||||||||||||||||||||
NotesTo compile a script from an external file source rather than passing the actual script as an argument, useJS_CompileFile instead of JS_CompileScript .
| |||||||||||||||||||||
See Also
|