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

JS_GetFunctionCallback

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

Introduced in JavaScript 1.8.5

Returns the callback currently configured to be called when JavaScript functions are invoked or exited, as established by a prior call to JS_SetFunctionCallback.

Note: This method is only available if MOZ_TRACE_JSCALLS was defined at compile time using --enable-trace-jscalls.

Syntax

JSFunctionCallback
JS_GetFunctionCallback(JSContext *cx);
Name Type Description
cx JSContext * Pointer to a JS context from which to derive runtime information. Requires request. In a JS_THREADSAFE build, the caller must be in a request on this JSContext.

Description

JS_GetFunctionCallback returns the current function invocation callback, or NULL if there isn't one set up.

See Also

Document Tags and Contributors

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