Entry: JS_CompileFile (Function)
Summary: Compiles a script stored in an external file.
Syntax:
JSScript * JS_CompileFile(JSContext *cx, JSObject *obj,
const char *filename);
Argument Type Description
cx JSContext * Pointer to a JS context from which to derive runtime information.
obj JSObject * Object with which the script is associated.
filename const char * Name of file or URL containing the script to compile.
Description:
JS_CompileFile compiles the text of script in an external file location for execution by the JS engine.
See also:
|
|
|