### Version _No response_ ### Platform _No response_ ### Subsystem _No response_ ### What steps will reproduce the bug? ```js const { BroadcastChannel } = require('worker_threads') const c = new BroadcastChannel("x") if (c.onmessage !== null) throw "fail" // it's undefined ``` ### How often does it reproduce? Is there a required condition? _No response_ ### What is the expected behavior? _No response_ ### What do you see instead? <!-- --> ### Additional information Rabbit hole: browsers and deno agree `.onmessage` and `.onmessageerror` are getters+setters inherited from `EventTarget`.
Activity
benjamingr commentedon Feb 14, 2022
This is a problem with how we do event handlers - it needs to always return null. I'll open a PR.