diff --git a/packages/browser-integration-tests/suites/public-api/instrumentation/eventListener/test.ts b/packages/browser-integration-tests/suites/public-api/instrumentation/eventListener/test.ts index 8d821a14906e..d7b9f75a13f2 100644 --- a/packages/browser-integration-tests/suites/public-api/instrumentation/eventListener/test.ts +++ b/packages/browser-integration-tests/suites/public-api/instrumentation/eventListener/test.ts @@ -17,7 +17,7 @@ sentryTest( value: 'event_listener_error', mechanism: { type: 'instrument', - handled: true, + handled: false, }, stacktrace: { frames: expect.any(Array), diff --git a/packages/browser-integration-tests/suites/sessions/update-session/test.ts b/packages/browser-integration-tests/suites/sessions/update-session/test.ts index 5ce88e4bdc0e..dfde68dce175 100644 --- a/packages/browser-integration-tests/suites/sessions/update-session/test.ts +++ b/packages/browser-integration-tests/suites/sessions/update-session/test.ts @@ -17,7 +17,7 @@ sentryTest('should update session when an error is thrown.', async ({ getLocalTe expect(updatedSession).toBeDefined(); expect(updatedSession.init).toBe(false); expect(updatedSession.errors).toBe(1); - expect(updatedSession.status).toBe('ok'); + expect(updatedSession.status).toBe('crashed'); expect(pageloadSession.sid).toBe(updatedSession.sid); }); diff --git a/packages/browser/src/integrations/trycatch.ts b/packages/browser/src/integrations/trycatch.ts index cb3e42cfd107..0ec05cc552df 100644 --- a/packages/browser/src/integrations/trycatch.ts +++ b/packages/browser/src/integrations/trycatch.ts @@ -113,7 +113,7 @@ function _wrapTimeFunction(original: () => void): () => number { args[0] = wrap(originalCallback, { mechanism: { data: { function: getFunctionName(original) }, - handled: true, + handled: false, type: 'instrument', }, }); @@ -134,7 +134,7 @@ function _wrapRAF(original: any): (callback: () => void) => any { function: 'requestAnimationFrame', handler: getFunctionName(original), }, - handled: true, + handled: false, type: 'instrument', }, }), @@ -160,7 +160,7 @@ function _wrapXHR(originalSend: () => void): () => void { function: prop, handler: getFunctionName(original), }, - handled: true, + handled: false, type: 'instrument', }, }; @@ -220,7 +220,7 @@ function _wrapEventTarget(target: string): void { handler: getFunctionName(fn), target, }, - handled: true, + handled: false, type: 'instrument', }, }); @@ -239,7 +239,7 @@ function _wrapEventTarget(target: string): void { handler: getFunctionName(fn), target, }, - handled: true, + handled: false, type: 'instrument', }, }), diff --git a/packages/browser/test/integration/suites/builtins.js b/packages/browser/test/integration/suites/builtins.js index 8fa30d120e90..7a7760d9f689 100644 --- a/packages/browser/test/integration/suites/builtins.js +++ b/packages/browser/test/integration/suites/builtins.js @@ -182,7 +182,7 @@ describe('wrapped built-ins', function () { assert.deepEqual(summary.events[0].exception.values[0].mechanism, { type: 'instrument', - handled: true, + handled: false, data: { function: 'onreadystatechange', }, @@ -237,7 +237,7 @@ describe('wrapped built-ins', function () { assert.deepEqual(summary.events[0].exception.values[0].mechanism, { type: 'instrument', - handled: true, + handled: false, }); } }); @@ -277,7 +277,7 @@ describe('wrapped built-ins', function () { assert.oneOf(target, ['Node', 'EventTarget']); assert.deepEqual(summary.events[0].exception.values[0].mechanism, { type: 'instrument', - handled: true, + handled: false, data: { function: 'addEventListener', }, @@ -313,7 +313,7 @@ describe('wrapped built-ins', function () { assert.oneOf(target, ['Node', 'EventTarget']); assert.deepEqual(summary.events[0].exception.values[0].mechanism, { type: 'instrument', - handled: true, + handled: false, data: { function: 'addEventListener', handler: '',