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
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