Are functions valid keys for javascript object properties?
<p>I'd like to use functions as keys in a javascript object. The following works, at least in Chrome:</p>

<pre><code>var registry = {};
function Foo(){  };
function Bar(){  };
registry[Foo] = 42;
registry[Bar] = 43;
alert(registry[Foo] + " &lt; " + registry[Bar]);
</code></pre>

<p>Is this covered by the standard? By which browsers is it supported?</p>
