Skip to content

Commit 3bada5d

Browse files
committed
misc: Place wrapping note closer to function call so it visible in UI
1 parent 3c7df57 commit 3bada5d

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

packages/browser/src/helpers.ts

+9-4
Original file line numberDiff line numberDiff line change
@@ -73,15 +73,20 @@ export function wrap(
7373

7474
// tslint:disable:no-unsafe-any
7575
try {
76-
// Attempt to invoke user-land function
77-
// NOTE: If you are a Sentry user, and you are seeing this stack frame, it
78-
// means the sentry.javascript SDK caught an error invoking your application code. This
79-
// is expected behavior and NOT indicative of a bug with sentry.javascript.
8076
const wrappedArguments = args.map((arg: any) => wrap(arg, options));
8177

8278
if (fn.handleEvent) {
79+
// Attempt to invoke user-land function
80+
// NOTE: If you are a Sentry user, and you are seeing this stack frame, it
81+
// means the sentry.javascript SDK caught an error invoking your application code. This
82+
// is expected behavior and NOT indicative of a bug with sentry.javascript.
8383
return fn.handleEvent.apply(this, wrappedArguments);
8484
}
85+
86+
// Attempt to invoke user-land function
87+
// NOTE: If you are a Sentry user, and you are seeing this stack frame, it
88+
// means the sentry.javascript SDK caught an error invoking your application code. This
89+
// is expected behavior and NOT indicative of a bug with sentry.javascript.
8590
return fn.apply(this, wrappedArguments);
8691
// tslint:enable:no-unsafe-any
8792
} catch (ex) {

0 commit comments

Comments
 (0)