Re: Implement jsdICompilationUnit

John J Barton <[email protected]> Wed, 02 Dec 2009 14:25:14 -0800
Newsgroups gmane.comp.mozilla.devel.jsdebugger
Message-ID <[email protected]>
Boris Zbarsky wrote:
> On 12/2/09 1:02 PM, John J. Barton wrote:
>> However that issue is orthogonal to the jsdICompilationHook proposal.
>> Today I could hook onScriptCreated and call jsd.enterNestedEventLoop().
> 
> Uh... That's not good.  Not good at all.  Fundamentally, I don't trust 
> "you" (whoever is hooking into jsd) to not do that.
> 
> -Boris

I think we must be miscommunicating.

To the best of my knowledge the Firebug code that runs in 
onScriptCreated would never call jsd.enterNestedEventLoop(). Firebug 
"could" call it, just like it "could" write "Happy Holidays" a billion 
times on your hard drive. Hopefully you'll to trust us not to do either one.

And anyway, jsdICompilationHook just does not have this problem. It runs 
after the compiles are completed, by design.

jjb