Skip to content

Commit b6f4f2d

Browse files
committed
small fix
1 parent 60951f4 commit b6f4f2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/browser/src/helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ export function wrap<T extends WrappableFunction, NonFunction>(
106106
const sentryWrapped = function (this: unknown, ...args: unknown[]): unknown {
107107
try {
108108
// Also wrap arguments that are themselves functions
109-
const wrappedArguments = args.map((arg: unknown) => (typeof arg === 'function' ? wrap(arg, options) : arg));
109+
const wrappedArguments = args.map((arg) => wrap(arg, options));
110110

111111
// Attempt to invoke user-land function
112112
// NOTE: If you are a Sentry user, and you are seeing this stack frame, it

0 commit comments

Comments
 (0)