Subj : Re: NewScriptHook bug To : netscape.public.mozilla.jseng From : Shanti Rao Date : Wed Nov 24 2004 11:16 pm Brendan Eich wrote: > Shanti Rao wrote: > >> In the current code, for(...) statements script generate new script >> objects but the new script hook never gets called. >> >> for (var i=0; i<10; i++) >> { >> print (i); >> print (2) >> print (3) >> } > > > Can you give a complete testcase? I don't see how this can happen > (there's only one script here, the top-level that contains the for > statement). > > /be Hmm. It's not actually making a new script object, but it's labelling line numbers as if it were expecting to -- only the start and end of the loop block. I'll try to track it down. .