Skip to content

TypeError: 'this' is expected an EventTarget object, but got another value. #556

@EmixamPP

Description

@EmixamPP

In the browser, when executing some code in a Worker, the context is the Worker object itself, which implies that the self is not required.

For example, we can do addEventListener without requiring the self. in front of.

The issue is that some libraries make assumption of that in the code they pass to the worker, which make them unusable with txiki.js.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions