pgriess/node-webworker — Issue #38: Worker is not a function error
Author: fernandezpablo85
Created: 2012-01-11 17:07:07+00:00
State: open

Hello,

Just following the README example I got:

```
TypeError: object is not a function
```

The fix I found for this is:

```
var Worker = requre('webworker').Worker
```

Not sure why this is happening, the ./lib file correctly exports `Worker` as it's `module.exports`.

Thanks