Visit Mozilla.org

JSVersion

From MDC

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.

[edit] 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_0 100 JavaScript 1.0 "1.0"
JSVERSION_1_1 110 JavaScript 1.1 "1.1"
JSVERSION_1_2 120 JavaScript 1.2 "1.2"
JSVERSION_1_3 130 JavaScript 1.3 "1.3"
JSVERSION_1_4 140 JavaScript 1.4 "1.4"
JSVERSION_ECMA_3 148 ECMA 262 Edition 3 "ECMAv3"
JSVERSION_1_5 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_DEFAULT 0 Default JavaScript version NULL
JSVERSION_LATEST JSVERSION_1_8 Latest JavaScript version NULL

LXR ID Search for JSVersion