Calling cwrap works for me in a worker. Do you have a testcase showing the
problem you are hitting?

- Alon



On Fri, Apr 25, 2014 at 3:21 PM, <[email protected]> wrote:

> I'm experimenting with creating a web worker from my javascript file
> compiled with emscripten in another Javascript file.
>
> It works until I try to use *Module.cwrap* in *onmessage* that I added to
> my emscripten Javascript file.  I'm getting this error with no line number.
>  I get this same error in Safari and Chrome.
> Uncaught ReferenceError: window is not defined
>
> --
> You received this message because you are subscribed to the Google Groups
> "emscripten-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to