Skip to content

put ErrorEvent and CloseEvent on global scope #2084

Description

@jimmywarting

I think this is more targeted to the nodejs/node repo.
but since they both are implemented here in undici i will instead post it here.

CloseEvent and ErrorEvent exist globally in Deno, but not in NodeJS.
I guess Deno has it b/c of WebSocket and FileReader, Workers and globalThis.onerror.

Any way... my feature request is to make those two accessible on the globalThis...

I tried last weak to build a more spec compatible Worker last week and wanted to use ErrorEvent but was a tiny bit surprised that it where not introduced earlier.

related to: nodejs/node#47587

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions