Skip to content

Worker.postMessage's second parameter type should be array of Transferables #238

Closed
@ochrons

Description

@ochrons

As stated in https://developer.mozilla.org/en-US/docs/Web/API/Worker/postMessage

Right now the parameter type is js.Any which of course works, but is not type safe.

The parameter type is correct in DedicatedWorkerGlobalScope.postMessage but I suppose it has not been updated to the Worker trait.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions