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 f119435 commit 488a273Copy full SHA for 488a273
packages/browser/src/integrations/trycatch.ts
@@ -38,16 +38,19 @@ 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.call(this, wrap(callback, {
42
- mechanism: {
43
- data: {
44
- function: 'requestAnimationFrame',
45
- handler: getFunctionName(original),
+ return original.call(
+ this,
+ wrap(callback, {
+ mechanism: {
+ data: {
46
+ function: 'requestAnimationFrame',
47
+ handler: getFunctionName(original),
48
+ },
49
+ handled: true,
50
+ type: 'instrument',
51
},
- handled: true,
- type: 'instrument',
- },
- }));
52
+ }),
53
+ );
54
};
55
}
56
0 commit comments