| |||||||||
SummaryFrees a compiled script when no longer needed. | |||||||||
Syntaxvoid) JS_DestroyScript(JSContext *cx, JSScript *script);
| |||||||||
DescriptionJS_DestroyScript destroys the compiled script object, script , thereby freeing the space allocated to it for other purposes. Generally, after you compile a script you do not want to call JS_DestroyScript until you no longer need to use the script. Othewise you will have to recompile the script to use it again.
| |||||||||
See Also
|