RE: Standardizing console APIs: Where?

> Safari, firefox, chrome:
>
> (a=[], function() { for (var i=0 ; i<10 ; i++) { a[0]=i; console.log(a); } })()
> [9]
> [9]
> [9]
> [9]
> [9]
> [9]
> [9]
> [9]
> [9]
> [9]
>
> node, opera dragonfly:
> > (a=[], function() { for (var i=0 ; i<10 ; i++) { a[0]=i; console.log(a); } })()
> [ 0 ]
> [ 1 ]
> [ 2 ]
> [ 3 ]
> [ 4 ]
> [ 5 ]
> [ 6 ]
> [ 7 ]
> [ 8 ]
> [ 9 ]
>

FWIW, I just tested in IE10 which outputs
0 
1 
2 
3 
4 
5 
6 
7 
8 
9 

(IE console is still text-only at this time, so it does a.toString() at call time) 		 	   		  

Received on Tuesday, 26 February 2013 10:13:35 UTC