-
-
Couldn't load subscription status.
- Fork 1.7k
Closed
Description
Problem Statement
This function says it's for older browsers that don't pass the error to the onerror event handler:
sentry-javascript/packages/browser/src/integrations/globalhandlers.ts
Lines 175 to 179 in f767905
| /** | |
| * This function creates a stack from an old, error-less onerror handler. | |
| */ | |
| // eslint-disable-next-line @typescript-eslint/no-explicit-any | |
| function _eventFromIncompleteOnError(msg: any, url: any, line: any, column: any): Event { |
Solution Brainstorm
If we no longer support browsers that behave like this, this code can safely be removed which shaves ~345 bytes from the minimised bundle.