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 03d9ef0 commit d045ce7Copy full SHA for d045ce7
packages/browser/src/integrations/trycatch.ts
@@ -38,18 +38,16 @@ export class TryCatch implements Integration {
38
/** JSDoc */
39
private _wrapRAF(original: any): (callback: () => void) => any {
40
return function(this: any, callback: () => void): () => void {
41
- return original(
42
- wrap(callback, {
43
- mechanism: {
44
- data: {
45
- function: 'requestAnimationFrame',
46
- handler: getFunctionName(original),
47
- },
48
- handled: true,
49
- type: 'instrument',
+ return original.call(this, wrap(callback, {
+ mechanism: {
+ data: {
+ function: 'requestAnimationFrame',
+ handler: getFunctionName(original),
50
},
51
- }),
52
- );
+ handled: true,
+ type: 'instrument',
+ },
+ }));
53
};
54
}
55
0 commit comments