Skip to content

Commit a062703

Browse files
committed
Linter plz
1 parent d7789d8 commit a062703

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

packages/browser/src/integrations/trycatch.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,10 @@ const DEFAULT_EVENT_TARGET = [
3737

3838
type XMLHttpRequestProp = 'onload' | 'onerror' | 'onprogress' | 'onreadystatechange';
3939

40+
/** JSDoc */
4041
interface TryCatchOptions {
41-
setTimeout: boolean;
4242
setInterval: boolean;
43+
setTimeout: boolean;
4344
requestAnimationFrame: boolean;
4445
XMLHttpRequest: boolean;
4546
eventTarget: boolean | string[];
@@ -65,8 +66,8 @@ export class TryCatch implements Integration {
6566
*/
6667
public constructor(options?: Partial<TryCatchOptions>) {
6768
this._options = {
68-
setTimeout: true,
6969
setInterval: true,
70+
setTimeout: true,
7071
requestAnimationFrame: true,
7172
XMLHttpRequest: true,
7273
eventTarget: true,
@@ -226,12 +227,12 @@ export class TryCatch implements Integration {
226227
public setupOnce(): void {
227228
const global = getGlobalObject();
228229

229-
if (this._options.setTimeout) {
230-
fill(global, 'setTimeout', this._wrapTimeFunction.bind(this));
231-
}
232230
if (this._options.setInterval) {
233231
fill(global, 'setInterval', this._wrapTimeFunction.bind(this));
234232
}
233+
if (this._options.setTimeout) {
234+
fill(global, 'setTimeout', this._wrapTimeFunction.bind(this));
235+
}
235236
if (this._options.requestAnimationFrame) {
236237
fill(global, 'requestAnimationFrame', this._wrapRAF.bind(this));
237238
}

0 commit comments

Comments
 (0)