Closed sixtus closed 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?
Never mind, found the bug and it's not in node-webworker
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?