Obsolete since JSAPI 5
This feature is obsolete. Although it is still supported by browsers, its usage is discouraged in new projects. Try to avoid using it.
Free a compiled script that is no longer needed.
||The context in which to destroy the script. Requires request. In a
||The script to destroy.|
JS_DestroyScript destroys the given compiled
script, freeing the memory allocated to it. The script must not be currently executing (in any context, at any level of the stack) and must not be used again afterwards.
At present, this function has no effect; the JSScript lives for as long as its script object lives. See
JS_NewScriptObject for details.