On Tue, Aug 18, 2009 at 2:35 PM, Mark Miller <[email protected]> wrote:
> For us folks in TV land (even if we don't have TV), could one of you
> explain how this works? Thanks.
We are relying on the fact that JavaScript is *really* single threaded. In
this case, to capture some guff given the program text:
___.loadModule(<guff>);
we do the following:
* Save the previous module handler (if any)
* Set a module handler that does the guff capture
* eval() the given text ( => capture the guff )
* Restore the old module handler (if any)
Ihab
--
Ihab A.B. Awad, Palo Alto, CA