Skip to content
This repository has been archived by the owner on Mar 30, 2022. It is now read-only.

Altered webworker-child to permit the global worker object to be passed by reference. #16

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kriskowal
Copy link

For some reason, using runInNewContext occludes the worker object, which it would be handy to be able to pass to an API for standard message passing setup.

I've also added a trivial example.

I would like to see the worker run as a module so relative module identifiers can be used inside the worker, relative to the worker file instead of the webworker-child module. This might require node to expose more of its module system primitives though.

…ould not be separated by contexts. The wrapped context limits the ability to pass the global worker object as an argument and for primordials to be shared between the require context and the worker context.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants