Skip to content

Commit

Permalink
Update packages/bridge/src/memory.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Yassin Kammoun <[email protected]>
  • Loading branch information
saberduck and yassin-kammoun-sonarsource authored Oct 18, 2023
1 parent e61a058 commit e4e0fc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/bridge/src/memory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export function registerGarbageCollectionObserver() {
.getEntries()
.filter(
item =>
(item.detail as NodeGCPerformanceDetail).kind === constants.NODE_PERFORMANCE_GC_MAJOR,
(item.detail as NodeGCPerformanceDetail)?.kind === constants.NODE_PERFORMANCE_GC_MAJOR,
)
.forEach(item => {
debug(`Major GC event`);
Expand Down

0 comments on commit e4e0fc8

Please sign in to comment.