Skip to content
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

fix(worker-plugin): transfer OffscreenCanvas #2849

Merged

Conversation

arsenpellumbi
Copy link
Contributor

Issue: #2848

@manucorporat
Copy link
Contributor

could we make it a small utility function? like const isTransferable?

@arsenpellumbi
Copy link
Contributor Author

could we make it a small utility function? like const isTransferable?

The problem is that the check is used in two separated contexts, one is in the "getWorkerIntro" which is attached to the worker, and the other is in the "WORKER_HELPERS" which is attached to the file that instantiates the worker.
One simple way is to create a string containing the function and attach it to both "getWorkerIntro" and "WORKER_HELPERS", but I don't see any benefit doing that.

@manucorporat
Copy link
Contributor

ah you right! merging i am actually thinking of using getTransferables in both contexts

@manucorporat manucorporat merged commit 969da47 into ionic-team:master Mar 25, 2021
johnjenkins pushed a commit to johnjenkins/stencil that referenced this pull request Apr 8, 2021
Co-authored-by: Arsen Pellumbi <apellumbi@screeningsolution.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants