File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -24,9 +24,9 @@ export class PerformanceObserverSink<T>
2424 #sink: Sink < T , unknown > ;
2525 #observer: PerformanceObserver | undefined ;
2626 readonly #observedTypes: EntryType [ ] = [ 'mark' , 'measure' ] ;
27- #getEntries = ( list : {
27+ #getEntries = ( listOrGlobal : {
2828 getEntriesByType : ( t : EntryType ) => PerformanceEntry [ ] ;
29- } ) => this . #observedTypes. flatMap ( t => list . getEntriesByType ( t ) ) ;
29+ } ) => this . #observedTypes. flatMap ( t => listOrGlobal . getEntriesByType ( t ) ) ;
3030 #observedCount: number = 0 ;
3131
3232 constructor ( options : PerformanceObserverOptions < T > ) {
@@ -72,9 +72,6 @@ export class PerformanceObserverSink<T>
7272 } ) ;
7373 } ) ;
7474
75- // In real PerformanceObserver, entries remain in the global buffer
76- // They are only cleared when explicitly requested via performance.clearMarks/clearMeasures
77-
7875 this . #observedCount = 0 ;
7976 }
8077
You can’t perform that action at this time.
0 commit comments