Skip to content

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

Merge request reports

Loading