Skip to content

Commit 1b1f86f

Browse files
apply requested changes
1 parent f93d17a commit 1b1f86f

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

packages/core/src/js/integrations/debugsymbolicator.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { Event, EventHint, Exception, Integration, StackFrame as SentryStackFrame } from '@sentry/core';
2-
import { logger } from '@sentry/core';
2+
import { consoleSandbox, logger } from '@sentry/core';
33

44
import type { ExtendedError } from '../utils/error';
55
import { getFramesToPop, isErrorLike } from '../utils/error';
@@ -33,8 +33,11 @@ export const debugSymbolicatorIntegration = (): Integration => {
3333
};
3434

3535
async function processEvent(event: Event, hint: EventHint): Promise<Event> {
36+
return consoleSandbox(async () => {
3637
// event created by consoleIntegration, symbolicator can trigger those events.
37-
// so we drop the event to avoid an infinite loop.
38+
// so we drop the event to avoid an infinite loop.
39+
// @ts-ignore lets ignore for now
40+
console.assert(false, ' deadlock test');
3841
if (
3942
event.extra?.['arguments'] &&
4043
event.message?.startsWith("Assertion failed: 'this' is expected an Event object, but got")
@@ -66,7 +69,8 @@ async function processEvent(event: Event, hint: EventHint): Promise<Event> {
6669
}
6770
}
6871

69-
return event;
72+
return event;
73+
});
7074
}
7175

7276
/**

0 commit comments

Comments
 (0)