Skip to content

Commit 4bb8be9

Browse files
committed
fix: Array.from is not available in old mobile browsers
1 parent 1d31662 commit 4bb8be9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/browser/src/integrations/helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export function wrap(
6666
// NOTE: If you are a Sentry user, and you are seeing this stack frame, it
6767
// means Raven caught an error invoking your application code. This is
6868
// expected behavior and NOT indicative of a bug with Raven.js.
69-
const wrappedArguments = Array.from(arguments).map(arg => wrap(arg, options));
69+
const wrappedArguments = Array.prototype.slice.call(arguments).map((arg: any) => wrap(arg, options));
7070

7171
if (fn.handleEvent) {
7272
return fn.handleEvent.apply(this, wrappedArguments);

0 commit comments

Comments
 (0)