JS_DropExceptionState

There was a scripting error on this page. While it is being addressed by site editors, you can view partial content below.

{{SpiderMonkeySidebar("JSAPI")}}

Destroys a {{jsapixref("JSExceptionState")}} object previously created using {{jsapixref("JS_SaveExceptionState")}}.

Syntax

void
JS_DropExceptionState(JSContext *cx, JSExceptionState *state);
Name Type Description
cx {{jsapixref("JSRuntime", "JSContext *")}} Pointer to a JS context from which to derive runtime information. {{ Jsapi-requires-request() }}
state {{jsapixref("JSExceptionState", "JSExceptionState *")}} Pointer to the JSExceptionState object to destroy.

Description

This function destroys the specified {{jsapixref("JSExceptionState")}} object, unrooting as necessary any attached exception object and freeing the memory resources associated with the JSExceptionState object.

This object should previously have been created using {{jsapixref("JS_SaveExceptionState")}}.

See Also

  • {{ LXRSearch("ident", "i", "JS_DropStateException") }}
  • {{jsapixref("JSExceptionState")}}
  • {{jsapixref("JS_SaveExceptionState")}}
  • {{jsapixref("JS_RestoreExceptionState")}}

Document Tags and Contributors

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