AcornSearch - Acorn and RISC OS information searching
RISC OS Search
containing
"Nutty quip goes here!"
Home  |  About  |  Filebase Archive  |  StrongHelp Manuals  |  Newsgroups  |  Module Database
Entry:     JS_SetVersion (Function)
Summary:     Specifies the version of JavaScript used by a specified executable script context.
Syntax:
JSVersion JS_SetVersion(JSContext *cx, JSVersion version);

Description:
JS_SetVersion attempts to set the version of JavaScript to version for a specified executable script context, cxversion must be one of the following values: TABLE BORDER="0" TRTD VALIGN='baseline' ALIGN='left' BEnumeration /B/TDTD VALIGN='baseline' ALIGN='left' BMeaning /B /TD/TRTR TD VALIGN='baseline' ALIGN='left'P CODEJSVERSION_1_0/CODE/TDTD VALIGN='baseline' ALIGN='left'P JavaScript 1.0/P /TD/TRTR TD VALIGN='baseline' ALIGN='left'P CODEJSVERSION_1_1/CODE/TDTD VALIGN='baseline' ALIGN='left'P JavaScript 1.1/P /TD/TRTR TD VALIGN='baseline' ALIGN='left'P CODEJSVERSION_1_2/CODE/TDTD VALIGN='baseline' ALIGN='left'P JavaScript 1.2/P /TD/TRTR TD VALIGN='baseline' ALIGN='left'P CODEJSVERSION_1_3/CODE/TDTD VALIGN='baseline' ALIGN='left'P JavaScript 1.3/P /TD/TR/TABLE  

JS_SetVersion returns the JS version in effect for the context before you changed it.


See also:
JS_GetVersion

[sh-index] Back to list of manuals