-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EventTarget
#1039
Comments
I'll think makes it sense or not, thanks. |
Note: it is listed as experimental starting with Node 14.5 but I cannot find the flag to enable it (in Node 14.18). |
Hi, a bit similar, I was looking for a polyfill of Headers which has long been supported in browsers but just recently in v18 of Node.js. Its API is quite similar to URLSearchParams though. |
We still need this? I'm thinking about do some research on this one |
Yes, it's still required and can be useful for some other features. |
Which node version do we need to cover @zloirock? |
All possible. |
EventTarget API Specification: https://developer.mozilla.org/en-US/docs/Web/API/EventTarget |
EventTarget API Specification: https://dom.spec.whatwg.org/#interface-eventtarget
It's not the best place to look for polyfills code -) |
A nice implementation: https://github.com/mysticatea/event-target-shim |
EventTarget
does not exist in Node < 16. Example.Some existing polyfills:
The text was updated successfully, but these errors were encountered: