Obsolete since JSAPI 25
This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it.
JSVersion JS_SetVersion(JSContext *cx, JSVersion version);
||Pointer to a JS context from which to derive runtime information.|
cx. The version comes from the
JSVersion enumerated type.
JS_SetVersion returns the JS version in effect for the context before you changed it.