In Javascript, why does { a : 1 } == { a : 1 } give an error, and ({a : 1}) == {a : 1} will work?
<p>This is done in Firebug:</p>

<pre><code>&gt;&gt;&gt; {a : 1} == {a : 1}
SyntaxError: syntax error
[Break On This Error] {a : 1} == {a : 1} 

&gt;&gt;&gt; ({a : 1}) == {a : 1}
false
</code></pre>

<p>So it needs to be <code>({a : 1}) == {a : 1}</code>, why is that?</p>
