W3C home > Mailing lists > Public > public-script-coord@w3.org > January to March 2013

RE: Standardizing console APIs: Where?

From: François REMY <francois.remy.dev@outlook.com>
Date: Tue, 26 Feb 2013 11:13:07 +0100
Message-ID: <DUB002-W13494FD837F13044CC8974DA5FC0@phx.gbl>
To: Jorge Chamorro <jorge@jorgechamorro.com>, Domenic Denicola <domenic@domenicdenicola.com>
CC: Marcos Caceres <w3c@marcosc.com>, Brian Kardell <bkardell@gmail.com>, "Hill, Clint" <clint.hill@goaaa.com>, "public-script-coord@w3.org" <public-script-coord@w3.org>
> 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

This archive was generated by hypermail 2.3.1 : Wednesday, 8 May 2013 19:30:09 UTC