On date Thursday 2015-02-26 16:37:32 -0800, Alon Zakai wrote:
> Closure minifies everything, so we can't actually create a local variable
> called "Module". But, we can detect it, and use it. So if you do
> 
> ====
> var Module = {}; // add this line
> 
> importScripts("hello.js");
> 
> if (Module) {
>     console.log("Module is defined");
> }
> ====
> 

> it will work. That is how it works when not on a worker, too - the HTML
> generally defines Module (and hooks it up to the canvas, etc.). Then
> closure compiled code can see it.

I confirm that it works this way, thanks.

-- 
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