test: use global.EventTarget instead of internals
EventTarget
and Event
are available from the global scope, there is no need to use the --expose-internals
flag in the tests.
Refs: https://github.com/nodejs/node/pull/35496
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines