src: store EventTarget and Event constructors on env
Start to an answer for https://github.com/nodejs/node/discussions/35870
Allows creating instances of EventTarget and Event at the native layer. With additional work, can be used to create classes that inherit from EventTarget and Event.
Signed-off-by: James M Snell jasnell@gmail.com
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines