OptionalfilterFilter configuration passed to filterStack.
Accepts the same options as filterStack, such as include, exclude,
and preset (e.g., 'app-only' to drop node_modules and internals).
OptionalformatFormat configuration passed to formatStack.
OptionalonCallback invoked with the processed frames and the original event payload.
The parsed and (optionally) filtered stack frames.
The originating object: an Error, an ErrorEvent from
window.addEventListener('error', ...), or a PromiseRejectionEvent from
window.addEventListener('unhandledrejection', ...).
Options for installBrowserErrorHooks.
Remarks
Use these hooks to normalize, filter, and format browser-side error stacks. When an error or unhandled promise rejection occurs, the stack is parsed into StackFrame objects, optionally filtered and formatted, and then surfaced via BrowserHookOptions.onStack or logged by default.