mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
5d8fae9cc0
Summary: Our implementation of `PerformanceObserver.prototype.observe` diverges a little bit from the [spec](https://w3c.github.io/performance-timeline/#dom-performanceobserver-observe) regarding the behavior when calling it multiple times. E.g.: 1. We don't throw errors if both `type ` and `entryTypes` are passed. 2. We don't throw errors if neither `type ` nor `entryTypes` are passed. 3. We don't throw errors if we call observe with `type` and we call again later with `entryTypes`, and vice versa. 4. The logic to consolidate entry types in subsequent observe calls is incorrect. This fixes those issues and also applies some minor naming improvements. Changelog: [internal] Reviewed By: rshest Differential Revision: D41872269 fbshipit-source-id: 9a6b485f4ef2f479c8b6f0307012322f65a11879