- From: François REMY <francois.remy.dev@outlook.com>
- Date: Tue, 26 Feb 2013 11:13:07 +0100
- 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