MDN may have intermittent access issues April 18 13:00 - April 19 01:00 UTC. See whistlepig.mozilla.org for all notifications.

mozilla
Your Search Results

    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: fscholz, Jorend, arai
    Last updated by: arai,
    Hide Sidebar