Skip to content

_eventFromIncompleteOnError is no longer required #5842

Closed
@timfish

Description

@timfish

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions