MCPcopy Index your code
hub / github.com/getsentry/sentry-javascript / ignoreNextOnError

Function ignoreNextOnError

packages/browser/src/helpers.ts:28–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26 * @hidden
27 */
28export function ignoreNextOnError(): void {
29 // onerror should trigger before setTimeout
30 ignoreOnError++;
31 setTimeout(() => {
32 ignoreOnError--;
33 });
34}
35
36// eslint-disable-next-line @typescript-eslint/ban-types
37type WrappableFunction = Function;

Callers 1

wrapFunction · 0.85

Calls 1

setTimeoutFunction · 0.85

Tested by

no test coverage detected