node-webworker icon indicating copy to clipboard operation
node-webworker copied to clipboard

Does not work in Node 0.5.0-pre

Open laverdet opened this issue 13 years ago • 0 comments

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.

laverdet avatar May 10 '11 04:05 laverdet