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,