Entry: JS_SetBranchCallback (Function)
Summary: Specifies a callback function that is automatically called when a script branches backward during execution, when a function returns, and at the end of the script.
Syntax:
JSBranchCallback JS_SetBranchCallback(JSContext *cx,
JSBranchCallback cb);
Argument Type Description
cx JSContext * Pointer to a JS context from which to derive runtime information.
cb JSBranchCallback The object that encapsulates the callback function.
Description:
JS_SetBranchCallback specifies a callback function that is automatically called when a script branches backward during execution, when a function returns, and at the end of the script. One typical use for a callback is in a client application to enable a user to abort an operation.
|
|
|