piscina icon indicating copy to clipboard operation
piscina copied to clipboard

When I try to send a message to the worker thread, an error occurs

Open tocha688 opened this issue 10 months ago • 1 comments

It is obvious that the message encapsulated internally is different from the data I sent, and I don't think this should happen. I need to communicate between the main thread and the worker thread. You should check if the content sent or received is an internal method, but you did not do so, or if you have customized a postMessage method

worker.postMessage({data:{}})
TypeError [Error]: String.prototype.startsWith called on null or undefined
    at startsWith (<anonymous>)
    at pathToFileURL (node:internal/url:1474:20)
    at getHandler (C:\Users\Administrator\.code\ccadmin\node_modules\piscina\dist\src\worker.js:62:64)
    at async C:\Users\Administrator\.code\ccadmin\node_modules\piscina\dist\src\worker.js:96:13

tocha688 avatar Apr 15 '24 10:04 tocha688

Can you provide an Minimum Reproducible Example to reproduce your issue?

metcoder95 avatar Apr 16 '24 07:04 metcoder95

This issue has been marked as stale because it has been opened 30 days without activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] avatar May 19 '24 10:05 github-actions[bot]

This issue was closed because it has been stalled for 5 days with no activity.

github-actions[bot] avatar May 26 '24 10:05 github-actions[bot]