JS_LeaveCrossCompartmentCall

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

This article covers features introduced in SpiderMonkey 1.8.1

JS_LeaveCrossCompartmentCall has been removed in bug 786068. Use JS_LeaveCompartment instead.

Leave a the compartment, returning to the compartment active before the corresponding JS_EnterCrossCompartmentCall.

Syntax

void
JS_LeaveCrossCompartmentCall(JSCrossCompartmentCall *call);
Name Type Description
call JSCrossCompartmentCall * Value returned by previous call to JS_EnterCrossCompartmentCall.

Description

Every JSContext has a current compartment. Any access to an object in a different compartment must be bracketed by call JS_EnterCrossCompartmentCall and JS_LeaveCrossCompartmentCall.

See Also

Document Tags and Contributors

Contributors to this page: arai, fscholz, tschneidereit, markg, Dmandelin
Last updated by: arai,
Hide Sidebar