Problem Statement
This function says it's for older browsers that don't pass the error to the onerror event handler:
|
/** |
|
* 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.
Problem Statement
This function says it's for older browsers that don't pass the error to the
onerrorevent handler:sentry-javascript/packages/browser/src/integrations/globalhandlers.ts
Lines 175 to 179 in f767905
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.