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
Node's EventTarget on/ off handlers are different than its add/ remove listener handlers. In my case, this changed the behavior of p-event with MessagePort between node and bun. It makes sense to prioritize add/ remove listener handlers, which are standardized between node and web/ bun/ deno.
I would also like the type definitions to be more accurate, because this caught me by surprise.
The text was updated successfully, but these errors were encountered:
vveisard
changed the title
Reorder normalizeEmitter with addEventListener and removeEventListener before on and off to standardize behavior environments
Reorder normalizeEmitter with addEventListener and removeEventListener before on and off to standardize behavior between environments
Mar 2, 2024
Node's
EventTarget
on/ off handlers are different than its add/ remove listener handlers. In my case, this changed the behavior ofp-event
withMessagePort
between node and bun. It makes sense to prioritize add/ remove listener handlers, which are standardized between node and web/ bun/ deno.I would also like the type definitions to be more accurate, because this caught me by surprise.
The text was updated successfully, but these errors were encountered: