Why does `for (var i in null_object)` enter the loop body more than zero times? : I am trying to save and load a Javascript object of the `{'foo':123}` type in localStorage. I have hit a strange behaviour.

    localStorage .setItem ('names', null);

	alert ("names is:" + localStorage .getItem ('names'));

	for (var n in localStorage .getItem ('names'))
	{
		alert ("#" + n + "#");
    }

This gives the following alerts

    names is:null
    #0#
    #1#
    #2#
    #3#

WTF?