events: set default handler value
Event handler like BroadcastChannel.onmessage and AbortSignal.onabort
have a default value of null
but we return undefined
.
Return null
and add a test.
Fixes #41963 (closed)
cc @bnoordhuis @jasnell @nodejs/events