Skip to content

xworker hooks cannot be used #20

@bugzpodder

Description

@bugzpodder

Users may need to be able to hook into XWorker runtime.

I've tried to pass in functions to onAfterRun/onAfterRunAsync and got an error.

This may repro: https://bugzpodder.pyscriptapps.com/polyscript-worker-errors-copy/latest/
However the domain is blocked by my computer so I don't know exactly.

Not sure if its webpack specific or not but it seems that the error is just serializing a function to postMessage which doesnt work, makes sense.
Screenshot 2023-08-29 at 7 38 04 AM

Metadata

Metadata

Assignees

No one assigned

    Labels

    invalidThis doesn't seem right

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions