JavaScript-1.5 Reference

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:
Enumeration Meaning

JSVERSION_1_0

JavaScript 1.0

JSVERSION_1_1

JavaScript 1.1

JSVERSION_1_2

JavaScript 1.2

JSVERSION_1_3

JavaScript 1.3

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

See Also

Groups [ Function ]
Documents [ LXR ID Search ]
Entries [ JS_GetVersion ]

This page was generated by APIDOC