pgriess / node-webworker

A WebWorkers implementation for NodeJS
BSD 3-Clause "New" or "Revised" License
646 stars 84 forks source link

Need to export all globals to child context #10

Open pgriess opened 14 years ago

pgriess commented 14 years ago

Right now, we have code in webworker-child.js that explicitly adds a hard-coded list of globals into the child context. When new globals get added with additional node releases, this code breaks (e.g. the new console global is not available).

We should programatically iterate over all globals and copy them.