Please note, this is a STATIC archive of website developer.mozilla.org from November 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

The values of the JSVersion enumerated type stand for particular versions of the JavaScript run-time. The functions JS_GetVersion, JS_SetVersion, JS_StringToVersion, and JS_VersionToString use these values.

Description

The JSVersion enumerated type includes the following values. Each version has a name, which is a string used by JS_StringToVersion and JS_VersionToString.

Enumeration Value Meaning Name
JSVERSION_1_0Obsolete since JSAPI 24 100 JavaScript 1.0 "1.0"
JSVERSION_1_1Obsolete since JSAPI 24 110 JavaScript 1.1 "1.1"
JSVERSION_1_2Obsolete since JSAPI 24 120 JavaScript 1.2 "1.2"
JSVERSION_1_3Obsolete since JSAPI 24 130 JavaScript 1.3 "1.3"
JSVERSION_1_4Obsolete since JSAPI 24 140 JavaScript 1.4 "1.4"
JSVERSION_ECMA_3 148 ECMA 262 Edition 3 "ECMAv3"
JSVERSION_1_5Obsolete since JSAPI 24 150 JavaScript 1.5 "1.5"
JSVERSION_1_6 160 JavaScript 1.6 "1.6"
JSVERSION_1_7 170 JavaScript 1.7 "1.7"
JSVERSION_1_8 180 JavaScript 1.8 "1.8"
JSVERSION_ECMA_5 185 ECMA 262 Edition 5 "ECMAv5"
JSVERSION_DEFAULT 0 Latest JavaScript version, but omitting web-incompatible extensions "default"
JSVERSION_UNKNOWN -1 Unknown JavaScript version NULL
JSVERSION_LATEST JSVERSION_ECMA_5 Latest JavaScript version NULL

See Also

Document Tags and Contributors

 Contributors to this page: arai, fscholz, vyv03354, eboyjr, Jorend, Jimb, Varmaa
 Last updated by: arai,