File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
browser-utils/src/instrument Expand file tree Collapse file tree 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 {
6868 const targetObj = globalObject [ target ] ;
6969 const proto = targetObj && targetObj . prototype ;
7070
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' ) ) {
7273 return ;
7374 }
7475
Original file line number Diff line number Diff line change @@ -20,8 +20,7 @@ export class MetricsAggregator implements MetricsAggregatorBase {
2020 // that we store in memory.
2121 private _bucketsTotalWeight ;
2222
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 } ;
2524
2625 // SDKs are required to shift the flush interval by random() * rollup_in_seconds.
2726 // That shift is determined once per startup to create jittering.
You can’t perform that action at this time.
0 commit comments