pgriess / node-webworker

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

Does not work in Node 0.5.0-pre #23

Open laverdet opened 13 years ago

laverdet commented 13 years ago

As of joyent/node@75db1995b6529cb71513a45299e2ba742e7afde9 Script is renamed to NodeScript in process.bindings('eval').

You should be able to fix this for both Node 0.4.x and 0.5.0-pre by changing var script = process.binding('evals'); to var script = require('vm'); in lib/webworker-child.js.

I'd send you a pull request but I don't feel like installing 0.4.x to test on the stable branch. The modification I mentioned works on 0.5.0-pre though.