events: fix EventTarget support
Remove support for multiple arguments (which don't actually work for EventTarget). Use our EventTarget implementation rather than a mock. Refactor `once` code in preparation of `on` using shared code for supporting `on` with `EventTarget`s. Support EventTarget in the `events.on` static method PR-URL: https://github.com/nodejs/node/pull/34015 Reviewed-By:Denys Otrishko <shishugi@gmail.com> Reviewed-By:
Benjamin Gruenbaum <benjamingr@gmail.com>
parent
655422a8
Please register or sign in to comment