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.

Get the currently enabled JSContext options.

Syntax

uint32
JS_GetOptions(JSContext *cx);
Name Type Description
cx JSContext * The context from which to read options.

Description

JS_GetOptions retrieves the option flags of a given JS context cx.

This function returns a uint32 value that is the logical OR of zero or more of the JSOPTION flags described in JS_SetOptions.

See Also