A.
So, don't do that. JavaScript engine is single-threaded. At the very least, you should properly marshal interface pointers from main to worker thread (but then you lose most of the benefits of the worker thread to begin with).
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not necessarily a good idea. It is hard to be sure where they are going to land, and it could be dangerous sitting under them as they fly overhead. -- RFC 1925