Are semicolons needed after an object literal assignment in JavaScript?
<p>The following code illustrates an object literal being assigned, but with no semicolon afterwards:</p>

<pre><code>var literal = {
    say: function(msg) { alert(msg); }
}
literal.say("hello world!");
</code></pre>

<p>This appears to be legal, and doesn't issue a warning (at least in FireFox 3).  Is this completely legal, or is there a strict version of JavaScript where this is not allowed?  I'm wondering in particular for future compatibility issues... I would like to be writing "correct" JavaScript, so if technically I need to use the semicolon, I would like to be using it.</p>
