-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
missing transfer argument for postMessage #7021
Comments
That argument is used to zero-copy objects that implement the transferable interface (ArrayBuffer and MessagePort). Deno does not support structured cloning yet (which is a prerequisite for Transferrable), and thus does not support the optional second parameter on Ref https://developer.mozilla.org/en-US/docs/Web/API/Worker/postMessage and https://developer.mozilla.org/en-US/docs/Web/API/Transferable |
Thank you. understood. |
Ref #3557 |
Closing in favor of #3557 |
postMessage from worker fails.
How can I get it to work properly?
main.ts
worker.ts
Running command
bash $ deno run --unstable --allow-read main.ts
Error message
The text was updated successfully, but these errors were encountered: