var a=[],i=0,o={x:1,y:2,z:3}
for(a[i++] in o);
console.log(a);
output in Mozilla developer console : Array [ "x", "y" ]
I expect array to be empty as the loop never iterates. But it is initialized with 'x' and 'y' .
What could be the reasonable explanation?