Subj : Re: trouble with combination of "for/in" and "with" block To : Aleksey From : Brendan Eich Date : Sat Jul 24 2004 12:04 pm > var unrelated_object = {}; > var i = 4444; > > function f() > { > with ( unrelated_object ) //// A. comment out to eliminate > problem > for ( var i in [7,7,7] ) {} > // for ( var i = 333; 0; ) {} //// B. this flavor of "for" has no > problem > //var i = "lalala"; //// C. un-comment it to eliminate > problem > } > > f(); > > print( ''+ i ); // prints "2", whereas expected "4444" Thanks very much for the testcase -- this is an old regression, AFAICT. I've just now filed bug 252892 (http://bugzilla.mozilla.org/show_bug.cgi?id=252892) and will patch it shortly. You should be able to apply the patch, or another patch for the RC6a sources that I'll put in the bug if necessary, to your 1.5 RC6a source files. /be .