RISC OS Search
Websites
Downloadable Files
Stronghelp Manuals
Acorn Newsgroups
containing
"Nutty quip goes here!"
Home
|
About
|
Filebase Archive
|
StrongHelp Manuals
|
Newsgroups
|
Module Database
Emulation
»
Archimedes
»
BBC Micro
TechDocs
»
Acorn RiscPC
»
Acorn A4 Laptop
»
Acorn A7000
»
Archimedes A5000
»
Archimedes A4000
»
Archimedes A30x0
»
Archimedes A3000
»
Archimedes A680
»
Archimedes A540
»
Archimedes A4x0
»
Archimedes A3x0
»
BBC Master Compact
»
BBC Master 128
»
BBC Micro
»
Acorn Atom
»
Acorn Electron
Clubs
»
WROCC
»
ROUGOL
»
MUG
»
BigBenClub.nl
Shows
»
RISC OS North
»
RISC OS London
»
RISC OS SouthWest
Other Sites
»
RISC OS Open
»
StarDot
(Discord)
»
Archimedes Archive
»
Arc Wiki
»
RISCOSitory news
»
The Icon Bar news
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,
cx
.
version
must be one of the following values:
TABLE BORDER="0"
TR
TD VALIGN='baseline' ALIGN='left'
B
Enumeration
/B
/TD
TD VALIGN='baseline' ALIGN='left'
B
Meaning
/B
/TD
/TR
TR
TD VALIGN='baseline' ALIGN='left'
P
CODE
JSVERSION_1_0
/CODE
/TD
TD VALIGN='baseline' ALIGN='left'
P
JavaScript 1.0
/P
/TD
/TR
TR
TD VALIGN='baseline' ALIGN='left'
P
CODE
JSVERSION_1_1
/CODE
/TD
TD VALIGN='baseline' ALIGN='left'
P
JavaScript 1.1
/P
/TD
/TR
TR
TD VALIGN='baseline' ALIGN='left'
P
CODE
JSVERSION_1_2
/CODE
/TD
TD VALIGN='baseline' ALIGN='left'
P
JavaScript 1.2
/P
/TD
/TR
TR
TD VALIGN='baseline' ALIGN='left'
P
CODE
JSVERSION_1_3
/CODE
/TD
TD 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