JS GetFunctionCallback

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

MXR ID Search for JS_GetFunctionCallback

Document Tags and Contributors

Tags:
Contributors to this page: Sheppy
Last updated by: Sheppy,