Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions packages/browser/src/integrations/trycatch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,7 @@ function _wrapRAF(original: any): (callback: () => void) => any {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
return function (this: any, callback: () => void): () => void {
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
return original.call(
this,
return original.apply(this, [
wrap(callback, {
mechanism: {
data: {
Expand All @@ -140,7 +139,7 @@ function _wrapRAF(original: any): (callback: () => void) => any {
type: 'instrument',
},
}),
);
]);
};
}

Expand Down Expand Up @@ -225,8 +224,7 @@ function _wrapEventTarget(target: string): void {
// can sometimes get 'Permission denied to access property "handle Event'
}

return original.call(
this,
return original.apply(this, [
eventName,
// eslint-disable-next-line @typescript-eslint/no-explicit-any
wrap(fn as any as WrappedFunction, {
Expand All @@ -241,7 +239,7 @@ function _wrapEventTarget(target: string): void {
},
}),
options,
);
]);
};
});

Expand Down