We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
const worker = workerize(` export function drawImage(canvas,image){ return canvas.getContext("2d").drawImage(image, 0, 0)} `)(canvas, image) worker.drawImage(document.querySelector('canvas'). transferControlToOffscreen(),img)
it will throw
DOMException: Failed to execute 'postMessage' on 'Worker': An OffscreenCanvas could not be cloned because it was not transferred.
https://developer.mozilla.org/en-US/docs/Web/API/Transferable
The text was updated successfully, but these errors were encountered:
@developit
Sorry, something went wrong.
i am also interested in this, because i'd like to workerize the webp-hero polyfill, which will best be implemented with a transferable OffscreenCanvas
OffscreenCanvas
No branches or pull requests
it will throw
https://developer.mozilla.org/en-US/docs/Web/API/Transferable
The text was updated successfully, but these errors were encountered: