You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Adding globals is out of scope for undici. Once undici exports WebSocket in its "fetch" bundle (which node is using), I can see the errors also being exported. FWIW I don't think WebSocket is ready to be exported yet, not until we have some confirmation it's being used and it works.
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
The text was updated successfully, but these errors were encountered: