Skip to content

BroadcastChannel: onmessage must be null #41963

Closed
@bnoordhuis

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    workerIssues and PRs related to Worker support.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions