events:use property, primordials
Per Web IDL, EventTarget.prototype[Symbol.toStringTag] should be a data property, not a getter. Commit https://github.com/nodejs/node/commit/56e44601d285483ffe3c6efa3b80743900d84856 introduced it as a getter.
This commit uses SymbolToStringTag from primordials and sets it as a property and not a getter.
Thank you Domenic for pointing this out!
Fixes: #33773 (closed) cc @jasnell
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines