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

JS_ToggleOptions

Obsolete since JSAPI 27
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.

Toggle specified options on a JSContext.

Syntax

uint32
JS_ToggleOptions(JSContext *cx, uint32 options);
Name Type Description
cx JSContext * A context on which to modify options.
options uint32 The set of options to toggle. This is the logical OR of zero or more flags described at JS_SetOptions.

Description

JS_ToggleOptions toggles context-wide options. It is equivalent to JS_SetOptions(cx, JS_GetOptions(cx) ^ options).

See Also

Document Tags and Contributors

 Contributors to this page: arai, fscholz, Jorend
 Last updated by: arai,