| ||||||||||||
SummaryCompiles a script stored in an external file. | ||||||||||||
SyntaxJSScript * JS_CompileFile(JSContext *cx, JSObject *obj, const char *filename);
| ||||||||||||
DescriptionJS_CompileFile compiles the text of script in an external file location for execution by the JS engine.
| ||||||||||||
NotesJS_CompileFile is available only if you compile the JS engine with the JSFILE macro defined.
If a script compiles successfully,
To pass a script as an argument to a function rather than having to specify a file
location, use
| ||||||||||||
See Also
|