threads.js
threads.js copied to clipboard
Document "do not pass functions or class instances to threads"
Follow-up of #140.
Regarding the class instances: You can pass them, of course, but you will only receive the instance properties as a plain object. The worker cannot know which prototype that instance used to have before serialization.
Related feature: Custom Serializers #207