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

Error objects cannot be sent over postMessage #53

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

umireon
Copy link

@umireon umireon commented Nov 16, 2016

Fixes #48
Maybe related #45

postMessage does not support sending Error objects.
Sending unsupported object via MessagePort throws DataCloneError, and thus the lzma_worker aborts.
See https://developer.mozilla.org/en/docs/Web/API/Web_Workers_API/Structured_clone_algorithm

Also, test cases on browsers to check this issue resolved is added.

Thanks

@umireon umireon changed the title Fixes #48: Error objects cannot be sent over postMessage Error objects cannot be sent over postMessage Feb 19, 2017
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.

Error objects cannot be cloned.
1 participant