File tree 2 files changed +3
-3
lines changed
browser-utils/src/instrument
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,8 @@ export function instrumentDOM(): void {
68
68
const targetObj = globalObject [ target ] ;
69
69
const proto = targetObj && targetObj . prototype ;
70
70
71
- if ( ! proto || Object . prototype . hasOwnProperty . call ( proto , 'addEventListener' ) ) {
71
+ // eslint-disable-next-line no-prototype-builtins
72
+ if ( ! proto || ! proto . hasOwnProperty || ! proto . hasOwnProperty ( 'addEventListener' ) ) {
72
73
return ;
73
74
}
74
75
Original file line number Diff line number Diff line change @@ -20,8 +20,7 @@ export class MetricsAggregator implements MetricsAggregatorBase {
20
20
// that we store in memory.
21
21
private _bucketsTotalWeight ;
22
22
23
- // Cast to any so that it can use Node.js timeout
24
- private readonly _interval : ReturnType < typeof setInterval > ;
23
+ private readonly _interval : ReturnType < typeof setInterval > & { unref ?: ( ) => void } ;
25
24
26
25
// SDKs are required to shift the flush interval by random() * rollup_in_seconds.
27
26
// That shift is determined once per startup to create jittering.
You can’t perform that action at this time.
0 commit comments