Skip to content

BroadcastChannel: onmessage must be null #41963

Description

@bnoordhuis

Version

No response

Platform

No response

Subsystem

No response

What steps will reproduce the bug?

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    workerIssues and PRs related to the worker_threads module and Worker API.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions