Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Heartbeat Service] Guard against empty heartbeat caches. (#7749)
There seems to be a potential scenario in the heartbeat service running in the Opera browser (#7736) that the heartbeatCache exists but it's an empty object. The code implementation encounters errors in these cases as it assumes the heartbeatCache has a heartbeats array. This change better detects these empty object cases and treats them in a similar way as if there's nothing in the heartbeatCache.
- Loading branch information