pgriess / node-webworker

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

Strange behavior on v0.3.0-pre (aka head) #12

Closed sixtus closed 13 years ago

sixtus commented 13 years ago

var Worker; while (!Worker) { console.log(Worker); Worker = require('webworker').Worker; } console.dir(Worker);

outputs:

undefined undefined [Function]

instead of:

undefined [Function]

Took me a day to realize it. Any idea what might cause this?

sixtus commented 13 years ago

Never mind, found the bug and it's not in node-webworker