Search completed in 1.35 seconds.
7 results for "js_compilefilehandle":
JS_CompileFileHandleForPrincipals
Mozilla › Projects › SpiderMonkey › JSAPI reference › JS CompileFileHandleForPrincipals
This article covers features introduced in SpiderMonkey 1.8.5 Please provide a description of this function. Syntax JSObject * JS_CompileFileHandleForPrincipals(JSContext *cx, JSObject *obj, const char *filename, FILE *fh, JSPrincipals *principals); Name Type Description cx JSContext * The context. Requires request. In a JS_THREADSAFE build, the caller must be in a request on this JSContext. ...
...JSPrincipals *principals); Name Type Description cx JSContext * The context. Requires request. In a JS_THREADSAFE build, the caller must be in a request on this JSContext. obj JSObject * filename const char fh FILE * principals JSPrincipals * Description Please provide a description. See Also JS_CompileFileHandleForPrincipalsVersion ...
JS_CompileFileHandleForPrincipalsVersion
Mozilla › Projects › SpiderMonkey › JSAPI reference › JS CompileFileHandleForPrincipalsVersion
This article covers features introduced in SpiderMonkey 1.8.5 Please provide a description for this function. Syntax JSObject * JS_CompileFileHandleForPrincipalsVersion(JSContext *cx, JSObject *obj, const char *filename, FILE *fh, JSPrincipals *principals, JSVersion version); Name Type Description cx JSContext * The context. Requires request. In a JS_THREADSAFE build, the caller must be in a request on this JSContext. ...
... Name Type Description cx JSContext * The context. Requires request. In a JS_THREADSAFE build, the caller must be in a request on this JSContext. obj JSObject * filename const char fh FILE * principals JSPrincipals * version JSVersion Description Please provide a description. See also JS_CompileFileHandleForPrincipals ...
JSAPI User Guide
Mozilla › Projects › SpiderMonkey › JSAPI User Guide
executes the script in one go. But sometimes an application needs to run a script many times. In this case, it may be faster to compile the script once and execute it multiple times. The JSAPI provides a type, JSScript, that represents a compiled script. The life cycle of a JSScript looks like this: The application compiles some JavaScript code using JS_CompileScript, JS_CompileUTF8File, or JS_CompileFileHandle. These functions return a pointer to a new JSScript. The application calls JS_ExecuteScript (or JS_ExecuteScriptPart) any number of times. It is safe to use a JSScript in multiple different contexts, but only within the JSRuntime and global in which it was created. Here is some example code using a compiled script: /* * Compile a script and execute it repeatedly until an * error occurs. ...
...ns that attach principals to the compiled code. These functions have ForPrincipals in the name. They are listed below. The purpose of using these functions is to ensure that your access check callbacks have accurate information about who is trying to access an object. Function Purpose JS_CompileScriptForPrincipals, JS_CompileUCScriptForPrincipals, JS_CompileFileHandleForPrincipals Compile a script with security information. (To execute a compiled script, use JS_ExecuteScript.) JS_CompileFunctionForPrincipals, JS_CompileUCFunctionForPrincipals Create a JavaScript function with security information. JS_EvaluateScriptForPrincipals, JS_EvaluateUCScriptForPrincipals Compile and execute a script with security ...
SpiderMonkey 1.8.5
Mozilla › Projects › SpiderMonkey › Releases › 1.8.5
ASS_GLOBAL_FLAGS flag set. Merely setting JSCLASS_IS_GLOBAL is insufficient. ...
...faces to handle the creation and management of the object wrapper directly; similarly, the script execution interfaces now accept a JSObject pointer than a pointer to JSScript. Affected interfaces are: JS_CompileScript JS_CompileScriptForPrincipals JS_CompileScriptForPrincipalsVersion JS_CompileUCScript JS_CompileUCScriptForPrincipals JS_CompileUCScriptForPrincipalsVersion JS_CompileFile JS_CompileFileHandle JS_CompileFileHandleForPrincipals JS_CompileFileHandleForPrincipalsVersion JS_CompileFunction JS_CompileFunctionForPrincipals JS_CompileUCFunctionForPrincipalsVersion JS_ExecuteScript JS_ExecuteScriptVersion Native functions JSNatives now use the "fast native" calling convention; see bug 581263. The JS_FS macro has been adjusted, losing its third (unused) argument. JS_IsConstructing, used...
SpiderMonkey 1.8.7
Mozilla › Projects › SpiderMonkey › Releases › 1.8.7
ASS_GLOBAL_FLAGS flag set. Merely setting JSCLASS_IS_GLOBAL is insufficient. ...
...faces to handle the creation and management of the object wrapper directly; similarly, the script execution interfaces now accept a JSObject pointer than a pointer to JSScript. Affected interfaces are: JS_CompileScript JS_CompileScriptForPrincipals JS_CompileScriptForPrincipalsVersion JS_CompileUCScript JS_CompileUCScriptForPrincipals JS_CompileUCScriptForPrincipalsVersion JS_CompileFile JS_CompileFileHandle JS_CompileFileHandleForPrincipals JS_CompileFileHandleForPrincipalsVersion JS_CompileFunction JS_CompileFunctionForPrincipals JS_CompileUCFunctionForPrincipalsVersion JS_ExecuteScript JS_ExecuteScriptVersion Native functions JSNatives now use the "fast native" calling convention; see bug 581263. The JS_FS macro has been adjusted, losing its third (unused) argument. JS_IsConstructing, used...
Index
Mozilla › Projects › SpiderMonkey › Index
if it were enclosed by a newly-created global object. 206 JS_CompareStrings JSAPI Reference, SpiderMonkey JS_CompareStrings compares two JS strings, str1 and str2. If the strings are identical in content and length, JS_CompareStrings stores 0 in *result. If str1 is less than str2, *result is less than 0. If str1 is greater than str2, *result is greater than 0. 207 JS_CompileFileHandleForPrincipals JSAPI Reference, NeedsContent, Obsolete, SpiderMonkey Please provide a description of this function. 208 JS_CompileFileHandleForPrincipalsVersion JSAPI Reference, NeedsContent, Obsolete, SpiderMonkey Please provide a description for this function. 209 JS_CompileFunction JSAPI Reference, SpiderMonkey JS_CompileFunction compiles a fun...
JSAPI reference
Mozilla › Projects › SpiderMonkey › JSAPI reference
pt JS::CloneAndExecuteScript Added in SpiderMonkey 31 JS_DecompileScript JS_ExecuteScriptVersion Obsolete since JSAPI 36 JS_CompileUTF8File Added in SpiderMonkey 11 Obsolete since JSAPI 19 JS_CompileUTF8FileHandle Added in SpiderMonkey 11 Obsolete since JSAPI 19 JS_CompileUTF8FileHandleForPrincipals Added in SpiderMonkey 11 Obsolete since JSAPI 19 JS_CompileFile Obsolete since JSAPI 11 JS_CompileFileHandle Obsolete since JSAPI 11 JS_CompileFileHandleForPrincipals Obsolete since JSAPI 11 JS_CompileScriptForPrincipals Obsolete since JSAPI 28 JS_CompileUCScriptForPrincipals Obsolete since JSAPI 28 JS_CompileScriptForPrincipalsVersion Obsolete since JSAPI 19 JS_CompileUCScriptForPrincipalsVersion Obsolete since JSAPI 19 JS_GetScriptObject Obsolete since JSAPI 8 JS_NewScriptObject Obsolete since ...