On 2/26/13 4:47 AM, Jorge Chamorro wrote:
> Safari, firefox, chrome:
>
> (a=[], function() { for (var i=0 ; i<10 ; i++) { a[0]=i; console.log(a); } })()
> [9]
> [9]
This happens because the conversion to string happens at display time,
not at log() call time.
And that was done because the other option is a serious performance hit
on pages that issue tens of thousands of log() calls but then only look
at the several hundred lines still visible in the console...
-Boris