This document contains code for handling JavaScript errors and reporting them to a server. It defines classes and functions for starting and ending timing measurements, constructing error report objects, and batching reports to be sent via image requests. When an error occurs, a report object is created and optionally sent to the defined error reporting endpoint. Timing measurements around the error are recorded and included in the report if the browser supports the necessary Performance API features.
This document contains code for handling JavaScript errors and reporting them to a server. It defines classes and functions for starting and ending timing measurements, constructing error report objects, and batching reports to be sent via image requests. When an error occurs, a report object is created and optionally sent to the defined error reporting endpoint. Timing measurements around the error are recorded and included in the report if the browser supports the necessary Performance API features.
This document contains code for handling JavaScript errors and reporting them to a server. It defines classes and functions for starting and ending timing measurements, constructing error report objects, and batching reports to be sent via image requests. When an error occurs, a report object is created and optionally sent to the defined error reporting endpoint. Timing measurements around the error are recorded and included in the report if the browser supports the necessary Performance API features.