Nickolay Ponomarev wrote:
> You have to provide the last param to asyncResolve:
> http://forums.mozillazine.org/viewtopic.php?t=531228

Technically, if you're a JS component and you're not touching any DOM objects, 
etc you might be able to get away with passing null.

The problems arise if you're touching any main-thread-only objects (e.g. 
"window" in this case, since alert() is being used) and allow yourself to be 
called from some random thread.  That comes under the Don't Do That heading, 
and 
in a debug build will assert like crazy.

-Boris

_______________________________________________
dev-tech-network mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-network

Reply via email to