lib: refactor to remove optional chaining in events.js
requested to merge github/fork/RaisinTen/lib/refactor-to-remove-optional-chaining-in-events.js into master
Refs: https://github.com/nodejs/node/pull/36528
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines