perf_hooks,trace_events: use stricter equality
There is no need to use loose equality on these checks because undefined
is caught by the preceding typeof
check.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines