We're looking for a person or people to help audit MDN to find places we could speed up. Is this you or someone you know? Check out the RFP: https://mzl.la/2IHcMiE


This article covers features introduced in SpiderMonkey 31

Configure a JSCompartment to use a specific version of the JavaScript language.


JS_SetVersionForCompartment(JSCompartment *compartment, JSVersion version);
Name Type Description
compartment JSCompartment * Pointer to a JS compartment.
version JSVersion Version of JavaScript to set compartment to.


JS_SetVersionForCompartment attempts to set the version of JavaScript to version for a specified compartment, compartment. The version comes from the JSVersion enumerated type.

See Also

Document Tags and Contributors

 Contributors to this page: kscarfone, arai
 Last updated by: kscarfone,