test: exercise EE function type checking paths
Checklist
-
make -j4 test
(UNIX), orvcbuild test nosign
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines
Affected core subsystem(s)
test
Description of change
This commit adds tests for on()
, once()
, removeListener()
, and prependOnceListener()
, which all throw a TypeError
if the listener argument is not a function.