We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a83da58 commit aca120cCopy full SHA for aca120c
packages/browser/src/integrations/trycatch.ts
@@ -69,7 +69,7 @@ export class TryCatch implements Integration {
69
mechanism: {
70
data: {
71
function: 'handleEvent',
72
- handler: ((fn as any) as SentryWrappedFunction).name || '<anonymous>',
+ handler: (fn && ((fn as any) as SentryWrappedFunction).name) || '<anonymous>',
73
target,
74
},
75
handled: true,
@@ -124,7 +124,7 @@ export class TryCatch implements Integration {
124
125
126
function: 'addEventListener',
127
128
129
130
0 commit comments