pgriess / node-webworker

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

Cannot use relative filenames when creating workers (e.g. ./child.js) #9

Closed pgriess closed 13 years ago

pgriess commented 14 years ago

Witness:

Error: ENOENT, No such file or directory '/child.js'
    at Object.openSync (fs:150:18)
    at Object.readFileSync (fs:94:15)
    at Object.<anonymous> (/opt/local/lib/node/webworker/webworker-child.js:138:12)
    at Module._compile (node.js:472:25)
    at Module._loadScriptSync (node.js:482:10)
    at Module.loadSync (node.js:352:12)
    at Object.runMain (node.js:535:24)
    at node.js:760:10
deepblue-phoenix commented 13 years ago

+1

EmilStenstrom commented 13 years ago

+1

pgriess commented 13 years ago

Duplicate of #11.

If you can come up w/ a fix, I'd be happy to include it.