Uh oh!
There was an error while loading. Please reload this page.
events: remove NodeEventTarget - #33665
Conversation
The extending of EventTarget with EventEmitter emulation is contentious and not something that is strictly necessary for minimal support. Signed-off-by: James M Snell <jasnell@gmail.com>
nodejs-github-bot
commented
May 30, 2020
benjamingr
left a comment
There was a problem hiding this comment.
Changes LGTM though I do see value in exposing this like we expose Buffer on top of types arrays.
Where did this get pushback?
targos
left a comment
There was a problem hiding this comment.
I do not think this is comparable to Buffer, because Buffer existed in Node.js before typed arrays. EventTarget is a new API and nothing in the ecosystem can rely on NodeEventTarget yet because it was never released.
8ae28ff to
2935f72Compareaddaleax
commented
May 31, 2020
Fwiw, I’m somewhat under the impression that this would make turning Or, put another way: It would require something like (There’s also the question of whether it’s possible to perform that change to |
jasnell
commented
Jun 1, 2020
We can hold off on this if there is other places we can use it. The pushback that I've seen in really in the places we'd use it... like |
benjamingr
commented
Jun 1, 2020
I like the approach we took with NodeEventTarget and we can take a similar approach for |
The extending of EventTarget with EventEmitter emulation is contentious
and not something that is strictly necessary for minimal support.
/cc @benjamingr
Signed-off-by: James M Snell jasnell@gmail.com
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes