Open
Description
What is the problem this feature will solve?
Emitting errors in userspace libraries that use EventTarget.
To emit an error, you would do:
eventTarget.dispatchEvent(new ErrorEvent('error', {error}));
Previous (now-"stale") filing: #47587
What is the feature you are proposing to solve the problem?
Implement the ErrorEvent
class from browsers as a Node.js global.
What alternatives have you considered?
Emitting a CustomEvent
with:
eventTarget.dispatchEvent(new CustomEvent('error', {detail: {error}}));
Metadata
Metadata
Assignees
Type
Projects
Status
Awaiting Triage